diff options
Diffstat (limited to 'modules/core/os_restart.cpp')
-rw-r--r-- | modules/core/os_restart.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/os_restart.cpp b/modules/core/os_restart.cpp index ae7075661..00f273958 100644 --- a/modules/core/os_restart.cpp +++ b/modules/core/os_restart.cpp @@ -45,13 +45,15 @@ class CommandOSRestart : public Command class OSRestart : public Module { + CommandOSRestart commandosrestart; + public: OSRestart(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator) { this->SetAuthor("Anope"); this->SetType(CORE); - this->AddCommand(OperServ, new CommandOSRestart()); + this->AddCommand(OperServ, &commandosrestart); } }; |