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