diff options
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) |