diff options
Diffstat (limited to 'src/modules/m_noctcp.cpp')
-rw-r--r-- | src/modules/m_noctcp.cpp | 3 |
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) |