summaryrefslogtreecommitdiff
path: root/modules/core/ns_getpass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/ns_getpass.cpp')
-rw-r--r--modules/core/ns_getpass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/ns_getpass.cpp b/modules/core/ns_getpass.cpp
index 97654d2d5..e1e16d96b 100644
--- a/modules/core/ns_getpass.cpp
+++ b/modules/core/ns_getpass.cpp
@@ -77,6 +77,8 @@ class CommandNSGetPass : public Command
class NSGetPass : public Module
{
+ CommandNSGetPass commandnsgetpass;
+
public:
NSGetPass(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
@@ -87,7 +89,7 @@ class NSGetPass : public Module
this->SetAuthor("Anope");
this->SetType(CORE);
- this->AddCommand(NickServ, new CommandNSGetPass());
+ this->AddCommand(NickServ, &commandnsgetpass);
}
};