From a85c986c041de4c9a9eb4ad63bc819be3d5425b9 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 23 Oct 2007 20:48:04 +0000 Subject: More AddModes fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8321 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_censor.cpp | 2 +- src/modules/m_chanfilter.cpp | 2 +- src/modules/m_chanprotect.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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!"); } -- cgit v1.2.3