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