diff options
Diffstat (limited to 'modules/core/os_umode.cpp')
-rw-r--r-- | modules/core/os_umode.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/os_umode.cpp b/modules/core/os_umode.cpp index 1f8f55ddb..1b65e7e18 100644 --- a/modules/core/os_umode.cpp +++ b/modules/core/os_umode.cpp @@ -70,6 +70,8 @@ class CommandOSUMode : public Command class OSUMode : public Module { + CommandOSUMode commandosumode; + public: OSUMode(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator) { @@ -79,7 +81,7 @@ class OSUMode : public Module this->SetAuthor("Anope"); this->SetType(CORE); - this->AddCommand(OperServ, new CommandOSUMode()); + this->AddCommand(OperServ, &commandosumode); } }; |