summaryrefslogtreecommitdiff
path: root/modules/core/os_modload.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/os_modload.cpp')
-rw-r--r--modules/core/os_modload.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/os_modload.cpp b/modules/core/os_modload.cpp
index a75fa9489..dbc07139f 100644
--- a/modules/core/os_modload.cpp
+++ b/modules/core/os_modload.cpp
@@ -59,6 +59,8 @@ class CommandOSModLoad : public Command
class OSModLoad : public Module
{
+ CommandOSModLoad commandosmodload;
+
public:
OSModLoad(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
@@ -66,7 +68,7 @@ class OSModLoad : public Module
this->SetType(CORE);
this->SetPermanent(true);
- this->AddCommand(OperServ, new CommandOSModLoad());
+ this->AddCommand(OperServ, &commandosmodload);
}
};