diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-28 16:55:50 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-28 16:55:50 +0000 |
commit | 67878d628c15f2adec41b6d3b266830a636c2ed0 (patch) | |
tree | bf981b6f291ff9c276a2020a673281c05b4f75ba /src/modules/m_inviteexception.cpp | |
parent | ead232e19a2b9d6bee36bb97a0dc9f3975f1e3a0 (diff) |
Reasonably sized fix - when adding modes in modules, be sure to check the return value so we dont load two modules with conflicting modes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6137 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_inviteexception.cpp')
-rw-r--r-- | src/modules/m_inviteexception.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_inviteexception.cpp b/src/modules/m_inviteexception.cpp index 26042933d..0f3581e9e 100644 --- a/src/modules/m_inviteexception.cpp +++ b/src/modules/m_inviteexception.cpp @@ -49,7 +49,8 @@ public: ModuleInviteException(InspIRCd* Me) : Module(Me) { ie = new InviteException(ServerInstance); - ServerInstance->AddMode(ie, 'I'); + if (!ServerInstance->AddMode(ie, 'I')) + throw ModuleException("Could not add new modes!"); } virtual void Implements(char* List) |