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.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/hs_set.cpp b/modules/core/hs_set.cpp
index e492e9ff5..604593e34 100644
--- a/modules/core/hs_set.cpp
+++ b/modules/core/hs_set.cpp
@@ -114,13 +114,15 @@ class CommandHSSet : public Command
class HSSet : public Module
{
+ CommandHSSet commandhsset;
+
public:
HSSet(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
this->SetAuthor("Anope");
this->SetType(CORE);
- this->AddCommand(HostServ, new CommandHSSet());
+ this->AddCommand(HostServ, &commandhsset);
}
};