diff options
Diffstat (limited to 'modules/core/ms_check.cpp')
-rw-r--r-- | modules/core/ms_check.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/core/ms_check.cpp b/modules/core/ms_check.cpp index 8134b98a7..34adcf2c4 100644 --- a/modules/core/ms_check.cpp +++ b/modules/core/ms_check.cpp @@ -12,6 +12,7 @@ /*************************************************************************/ #include "module.h" +#include "memoserv.h" class CommandMSCheck : public Command { @@ -92,7 +93,10 @@ class MSCheck : public Module this->SetAuthor("Anope"); this->SetType(CORE); - this->AddCommand(MemoServ, &commandmscheck); + if (!memoserv) + throw ModuleException("MemoServ is not loaded!"); + + this->AddCommand(memoserv->Bot(), &commandmscheck); } }; |