summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_chanprotect.cpp4
-rw-r--r--src/modules/m_cloaking.cpp2
-rw-r--r--src/modules/m_commonchans.cpp2
-rw-r--r--src/modules/m_deaf.cpp2
-rw-r--r--src/modules/m_helpop.cpp2
-rw-r--r--src/modules/m_hidechans.cpp2
-rw-r--r--src/modules/m_hideoper.cpp2
-rw-r--r--src/modules/m_invisible.cpp2
-rw-r--r--src/modules/m_inviteexception.cpp2
-rw-r--r--src/modules/m_joinflood.cpp2
-rw-r--r--src/modules/m_kicknorejoin.cpp2
-rw-r--r--src/modules/m_knock.cpp2
-rw-r--r--src/modules/m_messageflood.cpp2
-rw-r--r--src/modules/m_nickflood.cpp2
-rw-r--r--src/modules/m_noctcp.cpp2
-rw-r--r--src/modules/m_noinvite.cpp2
-rw-r--r--src/modules/m_nokicks.cpp2
-rw-r--r--src/modules/m_nonicks.cpp2
-rw-r--r--src/modules/m_nonotice.cpp2
19 files changed, 20 insertions, 20 deletions
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp
index fa215af3f..4f4ace1e7 100644
--- a/src/modules/m_chanprotect.cpp
+++ b/src/modules/m_chanprotect.cpp
@@ -361,8 +361,8 @@ class ModuleChanProtect : public Module
cp = new ChanProtect(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers);
cf = new ChanFounder(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers);
/* These wont fail, we already owned the mode characters before */
- ServerInstance->AddMode(cp, 'a');
- ServerInstance->AddMode(cf, 'q');
+ ServerInstance->AddMode(cp);
+ ServerInstance->AddMode(cf);
ServerInstance->WriteOpers("*** WARNING: +qa prefixes were enabled or disabled via a REHASH. Clients will probably need to reconnect to pick up this change.");
}
}
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 86f120d20..753c8be4b 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -327,7 +327,7 @@ class ModuleCloaking : public Module
cu = new CloakUser(ServerInstance, this, HashModule);
/* Register it with the core */
- if (!ServerInstance->AddMode(cu, 'x'))
+ if (!ServerInstance->AddMode(cu))
throw ModuleException("Could not add new modes!");
OnRehash(NULL,"");
diff --git a/src/modules/m_commonchans.cpp b/src/modules/m_commonchans.cpp
index 4cc11b725..c9225e1b7 100644
--- a/src/modules/m_commonchans.cpp
+++ b/src/modules/m_commonchans.cpp
@@ -52,7 +52,7 @@ class ModulePrivacyMode : public Module
ModulePrivacyMode(InspIRCd* Me) : Module(Me)
{
pm = new PrivacyMode(ServerInstance);
- if (!ServerInstance->AddMode(pm, 'c'))
+ if (!ServerInstance->AddMode(pm))
throw ModuleException("Could not add new modes!");
}
diff --git a/src/modules/m_deaf.cpp b/src/modules/m_deaf.cpp
index ced6adece..44479c21b 100644
--- a/src/modules/m_deaf.cpp
+++ b/src/modules/m_deaf.cpp
@@ -60,7 +60,7 @@ class ModuleDeaf : public Module
: Module(Me)
{
m1 = new User_d(ServerInstance);
- if (!ServerInstance->AddMode(m1, 'd'))
+ if (!ServerInstance->AddMode(m1))
throw ModuleException("Could not add new modes!");
OnRehash(NULL, "");
diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp
index 1ca9e0b5e..a5430d7da 100644
--- a/src/modules/m_helpop.cpp
+++ b/src/modules/m_helpop.cpp
@@ -115,7 +115,7 @@ class ModuleHelpop : public Module
{
ReadConfig();
ho = new Helpop(ServerInstance);
- if (!ServerInstance->AddMode(ho, 'h'))
+ if (!ServerInstance->AddMode(ho))
throw ModuleException("Could not add new modes!");
mycommand = new CommandHelpop(ServerInstance);
ServerInstance->AddCommand(mycommand);
diff --git a/src/modules/m_hidechans.cpp b/src/modules/m_hidechans.cpp
index 2637968a9..42614e937 100644
--- a/src/modules/m_hidechans.cpp
+++ b/src/modules/m_hidechans.cpp
@@ -59,7 +59,7 @@ class ModuleHideChans : public Module
{
hm = new HideChans(ServerInstance);
- if (!ServerInstance->AddMode(hm, 'I'))
+ if (!ServerInstance->AddMode(hm))
throw ModuleException("Could not add new modes!");
}
diff --git a/src/modules/m_hideoper.cpp b/src/modules/m_hideoper.cpp
index fd39cde0f..a2a3f21cd 100644
--- a/src/modules/m_hideoper.cpp
+++ b/src/modules/m_hideoper.cpp
@@ -58,7 +58,7 @@ class ModuleHideOper : public Module
{
hm = new HideOper(ServerInstance);
- if (!ServerInstance->AddMode(hm, 'H'))
+ if (!ServerInstance->AddMode(hm))
throw ModuleException("Could not add new modes!");
}
diff --git a/src/modules/m_invisible.cpp b/src/modules/m_invisible.cpp
index 2ec8439cf..d1fa5162a 100644
--- a/src/modules/m_invisible.cpp
+++ b/src/modules/m_invisible.cpp
@@ -159,7 +159,7 @@ class ModuleInvisible : public Module
{
conf = new ConfigReader(ServerInstance);
qm = new InvisibleMode(ServerInstance);
- if (!ServerInstance->AddMode(qm, 'Q'))
+ if (!ServerInstance->AddMode(qm))
throw ModuleException("Could not add new modes!");
ido = new InvisibleDeOper(ServerInstance);
if (!ServerInstance->AddModeWatcher(ido))
diff --git a/src/modules/m_inviteexception.cpp b/src/modules/m_inviteexception.cpp
index 7e1267995..0450760d7 100644
--- a/src/modules/m_inviteexception.cpp
+++ b/src/modules/m_inviteexception.cpp
@@ -44,7 +44,7 @@ public:
ModuleInviteException(InspIRCd* Me) : Module(Me)
{
ie = new InviteException(ServerInstance);
- if (!ServerInstance->AddMode(ie, 'I'))
+ if (!ServerInstance->AddMode(ie))
throw ModuleException("Could not add new modes!");
ServerInstance->Modules->PublishInterface("ChannelBanList", this);
}
diff --git a/src/modules/m_joinflood.cpp b/src/modules/m_joinflood.cpp
index 6840e155c..15cc535c0 100644
--- a/src/modules/m_joinflood.cpp
+++ b/src/modules/m_joinflood.cpp
@@ -216,7 +216,7 @@ class ModuleJoinFlood : public Module
{
jf = new JoinFlood(ServerInstance);
- if (!ServerInstance->AddMode(jf, 'j'))
+ if (!ServerInstance->AddMode(jf))
throw ModuleException("Could not add new modes!");
}
diff --git a/src/modules/m_kicknorejoin.cpp b/src/modules/m_kicknorejoin.cpp
index 0096c1719..02f452cba 100644
--- a/src/modules/m_kicknorejoin.cpp
+++ b/src/modules/m_kicknorejoin.cpp
@@ -124,7 +124,7 @@ public:
{
kr = new KickRejoin(ServerInstance);
- if (!ServerInstance->AddMode(kr, 'J'))
+ if (!ServerInstance->AddMode(kr))
throw ModuleException("Could not add new modes!");
}
diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp
index bf44bff53..67aa50d49 100644
--- a/src/modules/m_knock.cpp
+++ b/src/modules/m_knock.cpp
@@ -102,7 +102,7 @@ class ModuleKnock : public Module
{
kn = new Knock(ServerInstance);
- if (!ServerInstance->AddMode(kn, 'K'))
+ if (!ServerInstance->AddMode(kn))
throw ModuleException("Could not add new modes!");
mycommand = new CommandKnock(ServerInstance);
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp
index e7dd6e272..45274c6e4 100644
--- a/src/modules/m_messageflood.cpp
+++ b/src/modules/m_messageflood.cpp
@@ -209,7 +209,7 @@ class ModuleMsgFlood : public Module
{
mf = new MsgFlood(ServerInstance);
- if (!ServerInstance->AddMode(mf, 'f'))
+ if (!ServerInstance->AddMode(mf))
throw ModuleException("Could not add new modes!");
}
diff --git a/src/modules/m_nickflood.cpp b/src/modules/m_nickflood.cpp
index cd9d76c5b..181bbaa4c 100644
--- a/src/modules/m_nickflood.cpp
+++ b/src/modules/m_nickflood.cpp
@@ -215,7 +215,7 @@ class ModuleNickFlood : public Module
{
jf = new NickFlood(ServerInstance);
- if (!ServerInstance->AddMode(jf, 'F'))
+ if (!ServerInstance->AddMode(jf))
throw ModuleException("Could not add new modes!");
}
diff --git a/src/modules/m_noctcp.cpp b/src/modules/m_noctcp.cpp
index cb11dd5ad..b95835507 100644
--- a/src/modules/m_noctcp.cpp
+++ b/src/modules/m_noctcp.cpp
@@ -55,7 +55,7 @@ class ModuleNoCTCP : public Module
{
nc = new NoCTCP(ServerInstance);
- if (!ServerInstance->AddMode(nc, 'C'))
+ if (!ServerInstance->AddMode(nc))
throw ModuleException("Could not add new modes!");
}
diff --git a/src/modules/m_noinvite.cpp b/src/modules/m_noinvite.cpp
index 5447d0d60..a276f6e35 100644
--- a/src/modules/m_noinvite.cpp
+++ b/src/modules/m_noinvite.cpp
@@ -51,7 +51,7 @@ class ModuleNoInvite : public Module
ModuleNoInvite(InspIRCd* Me) : Module(Me)
{
ni = new NoInvite(ServerInstance);
- if (!ServerInstance->AddMode(ni, 'V'))
+ if (!ServerInstance->AddMode(ni))
throw ModuleException("Could not add new modes!");
}
diff --git a/src/modules/m_nokicks.cpp b/src/modules/m_nokicks.cpp
index c09d2203b..4cc269f1e 100644
--- a/src/modules/m_nokicks.cpp
+++ b/src/modules/m_nokicks.cpp
@@ -55,7 +55,7 @@ class ModuleNoKicks : public Module
{
nk = new NoKicks(ServerInstance);
- if (!ServerInstance->AddMode(nk, 'Q'))
+ if (!ServerInstance->AddMode(nk))
throw ModuleException("Could not add new modes!");
}
diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp
index 66d8d4601..1c8edf3bc 100644
--- a/src/modules/m_nonicks.cpp
+++ b/src/modules/m_nonicks.cpp
@@ -52,7 +52,7 @@ class ModuleNoNickChange : public Module
{
nn = new NoNicks(ServerInstance);
- ServerInstance->AddMode(nn, 'N');
+ ServerInstance->AddMode(nn);
}
virtual ~ModuleNoNickChange()
diff --git a/src/modules/m_nonotice.cpp b/src/modules/m_nonotice.cpp
index 314a7c8fe..ecff94532 100644
--- a/src/modules/m_nonotice.cpp
+++ b/src/modules/m_nonotice.cpp
@@ -54,7 +54,7 @@ class ModuleNoNotice : public Module
{
nt = new NoNotice(ServerInstance);
- if (!ServerInstance->AddMode(nt, 'T'))
+ if (!ServerInstance->AddMode(nt))
throw ModuleException("Could not add new modes!");
}