diff options
Diffstat (limited to 'modules/core/cs_access.cpp')
-rw-r--r-- | modules/core/cs_access.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/core/cs_access.cpp b/modules/core/cs_access.cpp index 74c72fcbb..23e5a415b 100644 --- a/modules/core/cs_access.cpp +++ b/modules/core/cs_access.cpp @@ -609,14 +609,17 @@ class CommandCSLevels : public Command class CSAccess : public Module { + CommandCSAccess commandcsaccess; + CommandCSLevels commandcslevels; + public: CSAccess(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator) { this->SetAuthor("Anope"); this->SetType(CORE); - this->AddCommand(ChanServ, new CommandCSAccess()); - this->AddCommand(ChanServ, new CommandCSLevels()); + this->AddCommand(ChanServ, &commandcsaccess); + this->AddCommand(ChanServ, &commandcslevels); } }; |