summaryrefslogtreecommitdiff
path: root/src/modules/m_operchans.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_operchans.cpp')
-rw-r--r--src/modules/m_operchans.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_operchans.cpp b/src/modules/m_operchans.cpp
index 69876cfcf..6852bc608 100644
--- a/src/modules/m_operchans.cpp
+++ b/src/modules/m_operchans.cpp
@@ -57,7 +57,8 @@ class ModuleOperChans : public Module
{
oc = new OperChans(ServerInstance);
- ServerInstance->AddMode(oc, 'O');
+ if (!ServerInstance->AddMode(oc, 'O'))
+ throw ModuleException("Could not add new modes!");
}
void Implements(char* List)