summaryrefslogtreecommitdiff
path: root/modules/core/ns_sendpass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/ns_sendpass.cpp')
-rw-r--r--modules/core/ns_sendpass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/ns_sendpass.cpp b/modules/core/ns_sendpass.cpp
index 61a61f356..30783a5b6 100644
--- a/modules/core/ns_sendpass.cpp
+++ b/modules/core/ns_sendpass.cpp
@@ -70,6 +70,8 @@ class CommandNSSendPass : public Command
class NSSendPass : public Module
{
+ CommandNSSendPass commandnssendpass;
+
public:
NSSendPass(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
@@ -83,7 +85,7 @@ class NSSendPass : public Module
this->SetAuthor("Anope");
this->SetType(CORE);
- this->AddCommand(NickServ, new CommandNSSendPass());
+ this->AddCommand(NickServ, &commandnssendpass);
}
};