diff options
Diffstat (limited to 'modules/core/ns_getemail.cpp')
-rw-r--r-- | modules/core/ns_getemail.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/core/ns_getemail.cpp b/modules/core/ns_getemail.cpp index e31bfb0f5..8f80a5cdf 100644 --- a/modules/core/ns_getemail.cpp +++ b/modules/core/ns_getemail.cpp @@ -16,6 +16,7 @@ /*************************************************************************/ #include "module.h" +#include "nickserv.h" class CommandNSGetEMail : public Command { @@ -78,7 +79,10 @@ class NSGetEMail : public Module this->SetAuthor("Anope"); this->SetType(CORE); - this->AddCommand(NickServ, &commandnsgetemail); + if (!nickserv) + throw ModuleException("NickServ is not loaded!"); + + this->AddCommand(nickserv->Bot(), &commandnsgetemail); } }; |