diff options
Diffstat (limited to 'modules/core/ns_suspend.cpp')
-rw-r--r-- | modules/core/ns_suspend.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/core/ns_suspend.cpp b/modules/core/ns_suspend.cpp index 375349fba..da8ea4e50 100644 --- a/modules/core/ns_suspend.cpp +++ b/modules/core/ns_suspend.cpp @@ -169,14 +169,17 @@ class CommandNSUnSuspend : public Command class NSSuspend : public Module { + CommandNSSuspend commandnssuspend; + CommandNSUnSuspend commandnsunsuspend; + public: NSSuspend(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator) { this->SetAuthor("Anope"); this->SetType(CORE); - this->AddCommand(NickServ, new CommandNSSuspend()); - this->AddCommand(NickServ, new CommandNSUnSuspend()); + this->AddCommand(NickServ, &commandnssuspend); + this->AddCommand(NickServ, &commandnsunsuspend); } }; |