summaryrefslogtreecommitdiff
path: root/modules/core/cs_forbid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/cs_forbid.cpp')
-rw-r--r--modules/core/cs_forbid.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/cs_forbid.cpp b/modules/core/cs_forbid.cpp
index 94ad125b9..004b523cc 100644
--- a/modules/core/cs_forbid.cpp
+++ b/modules/core/cs_forbid.cpp
@@ -116,13 +116,15 @@ class CommandCSForbid : public Command
class CSForbid : public Module
{
+ CommandCSForbid commandcsforbid;
+
public:
CSForbid(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
this->SetAuthor("Anope");
this->SetType(CORE);
- this->AddCommand(ChanServ, new CommandCSForbid());
+ this->AddCommand(ChanServ, &commandcsforbid);
}
};