summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-23 20:48:04 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-23 20:48:04 +0000
commita85c986c041de4c9a9eb4ad63bc819be3d5425b9 (patch)
treef928c7bdc10910d0e4232d823f2274d2a9faecf6 /src
parent0e7fabc4b1dc907dfe9be70d5cf03be3ec03f5aa (diff)
More AddModes fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8321 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_censor.cpp2
-rw-r--r--src/modules/m_chanfilter.cpp2
-rw-r--r--src/modules/m_chanprotect.cpp2
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!");
}