From 0e7fabc4b1dc907dfe9be70d5cf03be3ec03f5aa Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 23 Oct 2007 20:47:06 +0000 Subject: Some AddMode fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8320 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_auditorium.cpp | 2 +- src/modules/m_banexception.cpp | 2 +- src/modules/m_blockcaps.cpp | 2 +- src/modules/m_blockcolor.cpp | 2 +- src/modules/m_botmode.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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!"); } -- cgit v1.2.3