summaryrefslogtreecommitdiff
path: root/src/modules/m_hideoper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_hideoper.cpp')
-rw-r--r--src/modules/m_hideoper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_hideoper.cpp b/src/modules/m_hideoper.cpp
index b2eee3b57..43bfef445 100644
--- a/src/modules/m_hideoper.cpp
+++ b/src/modules/m_hideoper.cpp
@@ -62,7 +62,8 @@ class ModuleHideOper : public Module
{
hm = new HideOper(ServerInstance);
- ServerInstance->AddMode(hm, 'H');
+ if (!ServerInstance->AddMode(hm, 'H'))
+ throw ModuleException("Could not add new modes!");
}
void Implements(char* List)