diff options
Diffstat (limited to 'src/modules/m_knock.cpp')
-rw-r--r-- | src/modules/m_knock.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp index 5018899d2..d850ed35b 100644 --- a/src/modules/m_knock.cpp +++ b/src/modules/m_knock.cpp @@ -111,7 +111,8 @@ class ModuleKnock : public Module { kn = new Knock(ServerInstance); - ServerInstance->AddMode(kn, 'K'); + if (!ServerInstance->AddMode(kn, 'K')) + throw ModuleException("Could not add new modes!"); mycommand = new cmd_knock(ServerInstance); ServerInstance->AddCommand(mycommand); } |