diff options
Diffstat (limited to 'src/core/cs_getpass.c')
-rw-r--r-- | src/core/cs_getpass.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/core/cs_getpass.c b/src/core/cs_getpass.c index 130f6217b..5d43d7244 100644 --- a/src/core/cs_getpass.c +++ b/src/core/cs_getpass.c @@ -15,15 +15,6 @@ #include "module.h" -/** - * Add the help response to anopes /cs help output. - * @param u The user who is requesting help - **/ -void myChanServHelp(User * u) -{ - notice_lang(s_ChanServ, u, CHAN_HELP_CMD_GETPASS); -} - class CommandCSGetPass : public Command { public: @@ -86,12 +77,14 @@ class CSGetPass : public Module this->SetType(CORE); this->AddCommand(CHANSERV, new CommandCSGetPass(), MOD_UNIQUE); - this->SetChanHelp(myChanServHelp); - char tmp_pass[PASSMAX]; if (!enc_decrypt("tmp", tmp_pass, PASSMAX - 1)) throw ModuleException("Incompatible with the encryption module being used"); } + void ChanServHelp(User *u) + { + notice_lang(s_ChanServ, u, CHAN_HELP_CMD_GETPASS); + } }; MODULE_INIT("cs_getpass", CSGetPass) |