mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
More AddModes fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8321 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
0e7fabc4b1
commit
a85c986c04
@ -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!");
|
||||
}
|
||||
|
||||
|
@ -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!");
|
||||
}
|
||||
|
||||
|
@ -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!");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user