summaryrefslogtreecommitdiff
path: root/src/core/cs_topic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/cs_topic.cpp')
-rw-r--r--src/core/cs_topic.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/cs_topic.cpp b/src/core/cs_topic.cpp
index b8642666c..9e62fe681 100644
--- a/src/core/cs_topic.cpp
+++ b/src/core/cs_topic.cpp
@@ -77,6 +77,11 @@ class CommandCSTopic : public Command
{
syntax_error(Config.s_ChanServ, u, "TOPIC", CHAN_TOPIC_SYNTAX);
}
+
+ void OnServHelp(User *u)
+ {
+ notice_lang(Config.s_ChanServ, u, CHAN_HELP_CMD_TOPIC);
+ }
};
class CSTopic : public Module
@@ -89,12 +94,6 @@ class CSTopic : public Module
this->SetType(CORE);
this->AddCommand(ChanServ, new CommandCSTopic());
-
- ModuleManager::Attach(I_OnChanServHelp, this);
- }
- void OnChanServHelp(User *u)
- {
- notice_lang(Config.s_ChanServ, u, CHAN_HELP_CMD_TOPIC);
}
};