diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_auditorium.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_banexception.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_blockcaps.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_blockcolor.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_botmode.cpp | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp index b91538ace..a686d7444 100644 --- a/src/modules/m_auditorium.cpp +++ b/src/modules/m_auditorium.cpp @@ -54,7 +54,7 @@ class ModuleAuditorium : public Module : Module(Me) { aum = new AuditoriumMode(ServerInstance); - if (!ServerInstance->AddMode(aum, 'u')) + if (!ServerInstance->AddMode(aum)) throw ModuleException("Could not add new modes!"); OnRehash(NULL, ""); } diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp index 4c0e93dea..8bd53d62d 100644 --- a/src/modules/m_banexception.cpp +++ b/src/modules/m_banexception.cpp @@ -46,7 +46,7 @@ public: : Module(Me) { be = new BanException(ServerInstance); - if (!ServerInstance->AddMode(be, 'e')) + if (!ServerInstance->AddMode(be)) throw ModuleException("Could not add new modes!"); ServerInstance->Modules->PublishInterface("ChannelBanList", this); } diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp index 167a12bec..ec5f901e1 100644 --- a/src/modules/m_blockcaps.cpp +++ b/src/modules/m_blockcaps.cpp @@ -58,7 +58,7 @@ public: { OnRehash(NULL,""); bc = new BlockCaps(ServerInstance); - if (!ServerInstance->AddMode(bc, 'P')) + if (!ServerInstance->AddMode(bc)) throw ModuleException("Could not add new modes!"); } diff --git a/src/modules/m_blockcolor.cpp b/src/modules/m_blockcolor.cpp index 1635815ce..369e719b0 100644 --- a/src/modules/m_blockcolor.cpp +++ b/src/modules/m_blockcolor.cpp @@ -54,7 +54,7 @@ class ModuleBlockColour : public Module ModuleBlockColour(InspIRCd* Me) : Module(Me) { bc = new BlockColor(ServerInstance); - if (!ServerInstance->AddMode(bc, 'c')) + if (!ServerInstance->AddMode(bc)) throw ModuleException("Could not add new modes!"); } diff --git a/src/modules/m_botmode.cpp b/src/modules/m_botmode.cpp index b055c83ee..18a594c31 100644 --- a/src/modules/m_botmode.cpp +++ b/src/modules/m_botmode.cpp @@ -55,7 +55,7 @@ class ModuleBotMode : public Module { bm = new BotMode(ServerInstance); - if (!ServerInstance->AddMode(bm, 'B')) + if (!ServerInstance->AddMode(bm)) throw ModuleException("Could not add new modes!"); } |