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_info.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'src/core/ns_info.c') diff --git a/src/core/ns_info.c b/src/core/ns_info.c index d537ff272..330743438 100644 --- a/src/core/ns_info.c +++ b/src/core/ns_info.c @@ -15,8 +15,6 @@ #include "module.h" -void myNickServHelp(User *u); - class CommandNSInfo : public Command { private: @@ -220,18 +218,11 @@ class NSInfo : public Module this->SetType(CORE); this->AddCommand(NICKSERV, new CommandNSInfo(), MOD_UNIQUE); - - this->SetNickHelp(myNickServHelp); + } + void NickServHelp(User *u) + { + notice_lang(s_NickServ, u, NICK_HELP_CMD_INFO); } }; -/** - * 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_INFO); -} - MODULE_INIT("ns_info", NSInfo) -- cgit