summaryrefslogtreecommitdiff
path: root/modules/core/hs_off.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/hs_off.cpp')
-rw-r--r--modules/core/hs_off.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/hs_off.cpp b/modules/core/hs_off.cpp
index 187854188..ed64e2368 100644
--- a/modules/core/hs_off.cpp
+++ b/modules/core/hs_off.cpp
@@ -49,13 +49,15 @@ class CommandHSOff : public Command
class HSOff : public Module
{
+ CommandHSOff commandhsoff;
+
public:
HSOff(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
this->SetAuthor("Anope");
this->SetType(CORE);
- this->AddCommand(HostServ, new CommandHSOff());
+ this->AddCommand(HostServ, &commandhsoff);
}
};