summaryrefslogtreecommitdiff
path: root/src/modules/m_noctcp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_noctcp.cpp')
-rw-r--r--src/modules/m_noctcp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_noctcp.cpp b/src/modules/m_noctcp.cpp
index 0e9120407..622a08ac6 100644
--- a/src/modules/m_noctcp.cpp
+++ b/src/modules/m_noctcp.cpp
@@ -60,7 +60,8 @@ class ModuleNoCTCP : public Module
{
nc = new NoCTCP(ServerInstance);
- ServerInstance->AddMode(nc, 'C');
+ if (!ServerInstance->AddMode(nc, 'C'))
+ throw ModuleException("Could not add new modes!");
}
void Implements(char* List)