summaryrefslogtreecommitdiff
path: root/modules/core/ns_resetpass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/ns_resetpass.cpp')
-rw-r--r--modules/core/ns_resetpass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/ns_resetpass.cpp b/modules/core/ns_resetpass.cpp
index 23bb8095e..b0f95d8ef 100644
--- a/modules/core/ns_resetpass.cpp
+++ b/modules/core/ns_resetpass.cpp
@@ -63,6 +63,8 @@ class CommandNSResetPass : public Command
class NSResetPass : public Module
{
+ CommandNSResetPass commandnsresetpass;
+
public:
NSResetPass(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
@@ -72,7 +74,7 @@ class NSResetPass : public Module
this->SetAuthor("Anope");
this->SetType(CORE);
- this->AddCommand(NickServ, new CommandNSResetPass());
+ this->AddCommand(NickServ, &commandnsresetpass);
ModuleManager::Attach(I_OnPreCommand, this);
}