summaryrefslogtreecommitdiff
path: root/modules/core/cs_topic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/cs_topic.cpp')
-rw-r--r--modules/core/cs_topic.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/cs_topic.cpp b/modules/core/cs_topic.cpp
index d0a6843b5..913ceb239 100644
--- a/modules/core/cs_topic.cpp
+++ b/modules/core/cs_topic.cpp
@@ -81,13 +81,15 @@ class CommandCSTopic : public Command
class CSTopic : public Module
{
+ CommandCSTopic commandcstopic;
+
public:
CSTopic(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
this->SetAuthor("Anope");
this->SetType(CORE);
- this->AddCommand(ChanServ, new CommandCSTopic());
+ this->AddCommand(ChanServ, &commandcstopic);
}
};