diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_censor.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_chanfilter.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_chanprotect.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp index f220b0710..03c5bfb69 100644 --- a/src/modules/m_censor.cpp +++ b/src/modules/m_censor.cpp @@ -97,7 +97,7 @@ class ModuleCensor : public Module OnRehash(NULL,""); cu = new CensorUser(ServerInstance); cc = new CensorChannel(ServerInstance); - if (!ServerInstance->AddMode(cu, 'G') || !ServerInstance->AddMode(cc, 'G')) + if (!ServerInstance->AddMode(cu) || !ServerInstance->AddMode(cc)) throw ModuleException("Could not add new modes!"); } diff --git a/src/modules/m_chanfilter.cpp b/src/modules/m_chanfilter.cpp index 994c71a2a..6280280e3 100644 --- a/src/modules/m_chanfilter.cpp +++ b/src/modules/m_chanfilter.cpp @@ -66,7 +66,7 @@ class ModuleChanFilter : public Module : Module(Me) { cf = new ChanFilter(ServerInstance); - if (!ServerInstance->AddMode(cf, 'g')) + if (!ServerInstance->AddMode(cf)) throw ModuleException("Could not add new modes!"); } diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp index 325069d0b..fa215af3f 100644 --- a/src/modules/m_chanprotect.cpp +++ b/src/modules/m_chanprotect.cpp @@ -309,7 +309,7 @@ class ModuleChanProtect : public Module cp = new ChanProtect(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers); cf = new ChanFounder(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers); - if (!ServerInstance->AddMode(cp, 'a') || !ServerInstance->AddMode(cf, 'q')) + if (!ServerInstance->AddMode(cp) || !ServerInstance->AddMode(cf)) throw ModuleException("Could not add new modes!"); } |