summaryrefslogtreecommitdiff
path: root/modules/core/os_reload.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/os_reload.cpp')
-rw-r--r--modules/core/os_reload.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/os_reload.cpp b/modules/core/os_reload.cpp
index 4e64bba8d..722a6bd27 100644
--- a/modules/core/os_reload.cpp
+++ b/modules/core/os_reload.cpp
@@ -47,13 +47,15 @@ class CommandOSReload : public Command
class OSReload : public Module
{
+ CommandOSReload commandosreload;
+
public:
OSReload(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
this->SetAuthor("Anope");
this->SetType(CORE);
- this->AddCommand(OperServ, new CommandOSReload());
+ this->AddCommand(OperServ, &commandosreload);
}
};