diff options
Diffstat (limited to 'modules/core/cs_info.cpp')
-rw-r--r-- | modules/core/cs_info.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/core/cs_info.cpp b/modules/core/cs_info.cpp index c9c8b674c..19823004d 100644 --- a/modules/core/cs_info.cpp +++ b/modules/core/cs_info.cpp @@ -12,6 +12,7 @@ /*************************************************************************/ #include "module.h" +#include "chanserv.h" class CommandCSInfo : public Command { @@ -140,7 +141,10 @@ class CSInfo : public Module this->SetAuthor("Anope"); this->SetType(CORE); - this->AddCommand(ChanServ, &commandcsinfo); + if (!chanserv) + throw ModuleException("ChanServ is not loaded!"); + + this->AddCommand(chanserv->Bot(), &commandcsinfo); } }; |