summaryrefslogtreecommitdiff
path: root/src/core/cs_getkey.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/cs_getkey.cpp')
-rw-r--r--src/core/cs_getkey.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/cs_getkey.cpp b/src/core/cs_getkey.cpp
index 935a2bdbe..dc89bbbd0 100644
--- a/src/core/cs_getkey.cpp
+++ b/src/core/cs_getkey.cpp
@@ -55,6 +55,11 @@ class CommandCSGetKey : public Command
{
syntax_error(Config.s_ChanServ, u, "GETKEY", CHAN_GETKEY_SYNTAX);
}
+
+ void OnServHelp(User *u)
+ {
+ notice_lang(Config.s_ChanServ, u, CHAN_HELP_CMD_GETKEY);
+ }
};
@@ -67,12 +72,6 @@ class CSGetKey : public Module
this->SetVersion(VERSION_STRING);
this->SetType(CORE);
this->AddCommand(ChanServ, new CommandCSGetKey());
-
- ModuleManager::Attach(I_OnChanServHelp, this);
- }
- void OnChanServHelp(User *u)
- {
- notice_lang(Config.s_ChanServ, u, CHAN_HELP_CMD_GETKEY);
}
};