summaryrefslogtreecommitdiff
path: root/modules/core/os_modunload.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/os_modunload.cpp')
-rw-r--r--modules/core/os_modunload.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/os_modunload.cpp b/modules/core/os_modunload.cpp
index 50720459e..de70a6bb0 100644
--- a/modules/core/os_modunload.cpp
+++ b/modules/core/os_modunload.cpp
@@ -61,6 +61,8 @@ class CommandOSModUnLoad : public Command
class OSModUnLoad : public Module
{
+ CommandOSModUnLoad commandosmodunload;
+
public:
OSModUnLoad(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
@@ -68,7 +70,7 @@ class OSModUnLoad : public Module
this->SetType(CORE);
this->SetPermanent(true);
- this->AddCommand(OperServ, new CommandOSModUnLoad());
+ this->AddCommand(OperServ, &commandosmodunload);
}
};