summaryrefslogtreecommitdiff
path: root/modules/core/hs_set.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/hs_set.cpp')
-rw-r--r--modules/core/hs_set.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/core/hs_set.cpp b/modules/core/hs_set.cpp
index 9f79fedd7..9521bc57e 100644
--- a/modules/core/hs_set.cpp
+++ b/modules/core/hs_set.cpp
@@ -12,6 +12,7 @@
/*************************************************************************/
#include "module.h"
+#include "hostserv.h"
class CommandHSSet : public Command
{
@@ -122,7 +123,10 @@ class HSSet : public Module
this->SetAuthor("Anope");
this->SetType(CORE);
- this->AddCommand(HostServ, &commandhsset);
+ if (!hostserv)
+ throw ModuleException("HostServ is not loaded!");
+
+ this->AddCommand(hostserv->Bot(), &commandhsset);
}
};