diff options
Diffstat (limited to 'modules/core/os_shutdown.cpp')
-rw-r--r-- | modules/core/os_shutdown.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/os_shutdown.cpp b/modules/core/os_shutdown.cpp index afd04d1a9..c65a21673 100644 --- a/modules/core/os_shutdown.cpp +++ b/modules/core/os_shutdown.cpp @@ -44,13 +44,15 @@ class CommandOSShutdown : public Command class OSShutdown : public Module { + CommandOSShutdown commandosshutdown; + public: OSShutdown(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator) { this->SetAuthor("Anope"); this->SetType(CORE); - this->AddCommand(OperServ, new CommandOSShutdown()); + this->AddCommand(OperServ, &commandosshutdown); } }; |