diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-13 20:31:54 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-13 20:31:54 +0000 |
commit | d9e3bb8d4343643504ab7ee6ab943a000065cc8a (patch) | |
tree | 24d5d857f66b843f2d08c8a39ebbf812592c0f73 /src/modules/m_permchannels.cpp | |
parent | 8f9dafbfa3b62b1c88a8b1ad7988d5786f914528 (diff) |
Remove redundant ServerInstance* fields
It has been impossible to have more than one InspIRCd* object in the
same address space for some time now, and this feature was never used.
This formalizes class InspIRCd as a singleton object.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11703 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_permchannels.cpp')
-rw-r--r-- | src/modules/m_permchannels.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index 41a5daf33..674a6dca5 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -17,7 +17,7 @@ // Not in a class due to circular dependancy hell. static std::string permchannelsconf; -static bool WriteDatabase(InspIRCd *ServerInstance) +static bool WriteDatabase() { FILE *f; @@ -100,7 +100,7 @@ class PermChannel : public ModeHandler channel->SetMode('P',true); // Save permchannels db if needed. - WriteDatabase(ServerInstance); + WriteDatabase(); return MODEACTION_ALLOW; } } @@ -134,7 +134,7 @@ class PermChannel : public ModeHandler channel->SetMode('P',false); // Save permchannels db if needed. - WriteDatabase(ServerInstance); + WriteDatabase(); return MODEACTION_ALLOW; } } @@ -253,7 +253,7 @@ public: virtual ModResult OnRawMode(User* user, Channel* chan, const char mode, const std::string ¶m, bool adding, int pcnt) { if (chan && chan->IsModeSet('P')) - WriteDatabase(ServerInstance); + WriteDatabase(); return MOD_RES_PASSTHRU; } @@ -261,7 +261,7 @@ public: virtual void OnPostTopicChange(User*, Channel *c, const std::string&) { if (c->IsModeSet('P')) - WriteDatabase(ServerInstance); + WriteDatabase(); } virtual Version GetVersion() |