summaryrefslogtreecommitdiff
path: root/modules/core/ns_info.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/ns_info.cpp')
-rw-r--r--modules/core/ns_info.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/ns_info.cpp b/modules/core/ns_info.cpp
index 60af29baa..153faa623 100644
--- a/modules/core/ns_info.cpp
+++ b/modules/core/ns_info.cpp
@@ -178,13 +178,15 @@ class CommandNSInfo : public Command
class NSInfo : public Module
{
+ CommandNSInfo commandnsinfo;
+
public:
NSInfo(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
this->SetAuthor("Anope");
this->SetType(CORE);
- this->AddCommand(NickServ, new CommandNSInfo());
+ this->AddCommand(NickServ, &commandnsinfo);
}
};