diff options
Diffstat (limited to 'modules/extra/cs_enforce.cpp')
-rw-r--r-- | modules/extra/cs_enforce.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/extra/cs_enforce.cpp b/modules/extra/cs_enforce.cpp index 3a8e11735..6e39f33f3 100644 --- a/modules/extra/cs_enforce.cpp +++ b/modules/extra/cs_enforce.cpp @@ -14,6 +14,7 @@ */ #include "module.h" +#include "chanserv.h" static Module *me; @@ -217,12 +218,15 @@ class CSEnforce : public Module public: CSEnforce(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator) { - me = this; - this->SetAuthor("Anope"); this->SetType(SUPPORTED); - this->AddCommand(ChanServ, &commandcsenforce); + if (!chanserv) + throw ModuleException("ChanServ is not loaded!"); + + me = this; + + this->AddCommand(chanserv->Bot(), &commandcsenforce); } }; |