diff options
Diffstat (limited to 'modules/core/cs_clone.cpp')
-rw-r--r-- | modules/core/cs_clone.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/core/cs_clone.cpp b/modules/core/cs_clone.cpp index bbdae4c5f..52161abf1 100644 --- a/modules/core/cs_clone.cpp +++ b/modules/core/cs_clone.cpp @@ -12,6 +12,7 @@ /*************************************************************************/ #include "module.h" +#include "chanserv.h" class CommandCSClone : public Command { @@ -177,7 +178,10 @@ class CSClone : public Module this->SetAuthor("Anope"); this->SetType(CORE); - this->AddCommand(ChanServ, &commandcsclone); + if (!chanserv) + throw ModuleException("ChanServ is not loaded!"); + + this->AddCommand(chanserv->Bot(), &commandcsclone); } }; |