diff options
| author | 2008-01-17 23:40:18 +0000 | |
|---|---|---|
| committer | 2008-01-17 23:40:18 +0000 | |
| commit | ece985ccb3210a132d67381511642edfb359f5c4 (patch) | |
| tree | ae9e6955ecd039231eaa8d19634bb58732f81c41 /src/modules/m_chanprotect.cpp | |
| parent | Aquanight's configure strict/fatal warnings patch (diff) | |
| download | inspircd++-ece985ccb3210a132d67381511642edfb359f5c4.tar.gz inspircd++-ece985ccb3210a132d67381511642edfb359f5c4.tar.bz2 inspircd++-ece985ccb3210a132d67381511642edfb359f5c4.zip | |
Remove a redundant method here, call the mode manager directly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8732 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_chanprotect.cpp')
| -rw-r--r-- | src/modules/m_chanprotect.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp index 95a9efe19..5401d20f5 100644 --- a/src/modules/m_chanprotect.cpp +++ b/src/modules/m_chanprotect.cpp @@ -308,7 +308,7 @@ class ModuleChanProtect : public Module cp = new ChanProtect(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers); cf = new ChanFounder(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers); - if (!ServerInstance->AddMode(cp) || !ServerInstance->AddMode(cf)) + if (!ServerInstance->Modes->AddMode(cp) || !ServerInstance->Modes->AddMode(cf)) { delete cp; delete cf; @@ -362,8 +362,8 @@ class ModuleChanProtect : public Module cp = new ChanProtect(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers); cf = new ChanFounder(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers); /* These wont fail, we already owned the mode characters before */ - ServerInstance->AddMode(cp); - ServerInstance->AddMode(cf); + ServerInstance->Modes->AddMode(cp); + ServerInstance->Modes->AddMode(cf); ServerInstance->SNO->WriteToSnoMask('A', "WARNING: +qa prefixes were enabled or disabled via a REHASH. Clients will probably need to reconnect to pick up this change."); } } |
