diff options
Diffstat (limited to 'src/modules/m_hidechans.cpp')
-rw-r--r-- | src/modules/m_hidechans.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_hidechans.cpp b/src/modules/m_hidechans.cpp index 2545db187..9e39e2a73 100644 --- a/src/modules/m_hidechans.cpp +++ b/src/modules/m_hidechans.cpp @@ -62,7 +62,8 @@ class ModuleHideChans : public Module { hm = new HideChans(ServerInstance); - ServerInstance->AddMode(hm, 'I'); + if (!ServerInstance->AddMode(hm, 'I')) + throw ModuleException("Could not add new modes!"); } void Implements(char* List) |