More AddModes fixes

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8321 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2007-10-23 20:48:04 +00:00
parent 0e7fabc4b1
commit a85c986c04
3 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ class ModuleCensor : public Module
OnRehash(NULL,""); OnRehash(NULL,"");
cu = new CensorUser(ServerInstance); cu = new CensorUser(ServerInstance);
cc = new CensorChannel(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!"); throw ModuleException("Could not add new modes!");
} }

View File

@ -66,7 +66,7 @@ class ModuleChanFilter : public Module
: Module(Me) : Module(Me)
{ {
cf = new ChanFilter(ServerInstance); cf = new ChanFilter(ServerInstance);
if (!ServerInstance->AddMode(cf, 'g')) if (!ServerInstance->AddMode(cf))
throw ModuleException("Could not add new modes!"); throw ModuleException("Could not add new modes!");
} }

View File

@ -309,7 +309,7 @@ class ModuleChanProtect : public Module
cp = new ChanProtect(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers); cp = new ChanProtect(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers);
cf = new ChanFounder(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!"); throw ModuleException("Could not add new modes!");
} }