diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-23 20:47:06 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-23 20:47:06 +0000 |
commit | 0e7fabc4b1dc907dfe9be70d5cf03be3ec03f5aa (patch) | |
tree | 9f54575ff49c06ebe70e73ff890bb7d715e4961d /src | |
parent | 352eb2b29f2e3f759ef74344b4807b1b6dff8e59 (diff) |
Some AddMode fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8320 e03df62e-2008-0410-955e-edbf42e46eb7
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!"); } |