From 578da38d30893ca33cc1aa9183e4b82d67c831f3 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Mon, 6 Apr 2009 21:25:56 +0000 Subject: Replace Set*Help() functions with virtual *ServHelp() functions that can be overriden in a module's Module class. Patch from Adam. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2266 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/ns_getemail.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'src/core/ns_getemail.c') diff --git a/src/core/ns_getemail.c b/src/core/ns_getemail.c index f80bb1806..6baaadcd3 100644 --- a/src/core/ns_getemail.c +++ b/src/core/ns_getemail.c @@ -20,8 +20,6 @@ #include "module.h" -void myNickServHelp(User *u); - class CommandNSGetEMail : public Command { public: @@ -80,18 +78,11 @@ class NSGetEMail : public Module this->SetType(CORE); this->AddCommand(NICKSERV, new CommandNSGetEMail(), MOD_UNIQUE); - - this->SetNickHelp(myNickServHelp); + } + void NickServHelp(User *u) + { + notice_lang(s_NickServ, u, NICK_HELP_CMD_GETEMAIL); } }; -/** - * Add the help response to anopes /ns help output. - * @param u The user who is requesting help - **/ -void myNickServHelp(User *u) -{ - notice_lang(s_NickServ, u, NICK_HELP_CMD_GETEMAIL); -} - MODULE_INIT("ns_getemail", NSGetEMail) -- cgit