diff options
Diffstat (limited to 'modules/core/cs_getkey.cpp')
-rw-r--r-- | modules/core/cs_getkey.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/core/cs_getkey.cpp b/modules/core/cs_getkey.cpp index da71e690e..b46a7df53 100644 --- a/modules/core/cs_getkey.cpp +++ b/modules/core/cs_getkey.cpp @@ -12,6 +12,7 @@ /*************************************************************************/ #include "module.h" +#include "chanserv.h" class CommandCSGetKey : public Command { @@ -72,7 +73,10 @@ class CSGetKey : public Module this->SetAuthor("Anope"); this->SetType(CORE); - this->AddCommand(ChanServ, &commandcsgetkey); + if (!chanserv) + throw ModuleException("ChanServ is not loaded!"); + + this->AddCommand(chanserv->Bot(), &commandcsgetkey); } }; |