diff options
Diffstat (limited to 'modules/core/hs_on.cpp')
-rw-r--r-- | modules/core/hs_on.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/core/hs_on.cpp b/modules/core/hs_on.cpp index 8838d6b62..43fd06b04 100644 --- a/modules/core/hs_on.cpp +++ b/modules/core/hs_on.cpp @@ -12,6 +12,7 @@ /*************************************************************************/ #include "module.h" +#include "hostserv.h" class CommandHSOn : public Command { @@ -68,7 +69,10 @@ class HSOn : public Module this->SetAuthor("Anope"); this->SetType(CORE); - this->AddCommand(HostServ, &commandhson); + if (!hostserv) + throw ModuleException("HostServ is not loaded!"); + + this->AddCommand(hostserv->Bot(), &commandhson); } }; |