diff options
Diffstat (limited to 'modules/core/ns_status.cpp')
-rw-r--r-- | modules/core/ns_status.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/core/ns_status.cpp b/modules/core/ns_status.cpp index fa04d92e2..a7710d326 100644 --- a/modules/core/ns_status.cpp +++ b/modules/core/ns_status.cpp @@ -12,6 +12,7 @@ /*************************************************************************/ #include "module.h" +#include "nickserv.h" class CommandNSStatus : public Command { @@ -86,7 +87,10 @@ class NSStatus : public Module this->SetAuthor("Anope"); this->SetType(CORE); - this->AddCommand(NickServ, &commandnsstatus); + if (!nickserv) + throw ModuleException("NickServ is not loaded!"); + + this->AddCommand(nickserv->Bot(), &commandnsstatus); } }; |