summaryrefslogtreecommitdiff
path: root/modules/core/os_quit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/os_quit.cpp')
-rw-r--r--modules/core/os_quit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/os_quit.cpp b/modules/core/os_quit.cpp
index fb8fce2fd..a2c86bc82 100644
--- a/modules/core/os_quit.cpp
+++ b/modules/core/os_quit.cpp
@@ -45,13 +45,15 @@ class CommandOSQuit : public Command
class OSQuit : public Module
{
+ CommandOSQuit commandosquit;
+
public:
OSQuit(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
this->SetAuthor("Anope");
this->SetType(CORE);
- this->AddCommand(OperServ, new CommandOSQuit());
+ this->AddCommand(OperServ, &commandosquit);
}
};