diff options
Diffstat (limited to 'modules/core/os_stats.cpp')
-rw-r--r-- | modules/core/os_stats.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/os_stats.cpp b/modules/core/os_stats.cpp index 7b6bccae7..9cb3865a1 100644 --- a/modules/core/os_stats.cpp +++ b/modules/core/os_stats.cpp @@ -294,13 +294,15 @@ class CommandOSStats : public Command class OSStats : public Module { + CommandOSStats commandosstats; + public: OSStats(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator) { this->SetAuthor("Anope"); this->SetType(CORE); - this->AddCommand(OperServ, new CommandOSStats()); + this->AddCommand(OperServ, &commandosstats); } }; |