diff options
Diffstat (limited to 'src/modules/m_nokicks.cpp')
-rw-r--r-- | src/modules/m_nokicks.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_nokicks.cpp b/src/modules/m_nokicks.cpp index 9f8e804f0..c5ad179e8 100644 --- a/src/modules/m_nokicks.cpp +++ b/src/modules/m_nokicks.cpp @@ -61,7 +61,8 @@ class ModuleNoKicks : public Module { nk = new NoKicks(ServerInstance); - ServerInstance->AddMode(nk, 'Q'); + if (!ServerInstance->AddMode(nk, 'Q')) + throw ModuleException("Could not add new modes!"); } void Implements(char* List) |