summaryrefslogtreecommitdiff
path: root/modules/core/os_update.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/os_update.cpp')
-rw-r--r--modules/core/os_update.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/os_update.cpp b/modules/core/os_update.cpp
index 5f19d142d..0765b6acd 100644
--- a/modules/core/os_update.cpp
+++ b/modules/core/os_update.cpp
@@ -41,13 +41,15 @@ class CommandOSUpdate : public Command
class OSUpdate : public Module
{
+ CommandOSUpdate commandosupdate;
+
public:
OSUpdate(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
this->SetAuthor("Anope");
this->SetType(CORE);
- this->AddCommand(OperServ, new CommandOSUpdate());
+ this->AddCommand(OperServ, &commandosupdate);
}
};