diff options
Diffstat (limited to 'modules/core/cs_suspend.cpp')
-rw-r--r-- | modules/core/cs_suspend.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/core/cs_suspend.cpp b/modules/core/cs_suspend.cpp index 53bbaec92..24a7019f4 100644 --- a/modules/core/cs_suspend.cpp +++ b/modules/core/cs_suspend.cpp @@ -173,14 +173,17 @@ class CommandCSUnSuspend : public Command class CSSuspend : public Module { + CommandCSSuspend commandcssuspend; + CommandCSUnSuspend commandcsunsuspend; + public: CSSuspend(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator) { this->SetAuthor("Anope"); this->SetType(CORE); - this->AddCommand(ChanServ, new CommandCSSuspend()); - this->AddCommand(ChanServ, new CommandCSUnSuspend()); + this->AddCommand(ChanServ, &commandcssuspend); + this->AddCommand(ChanServ, &commandcsunsuspend); } }; |