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/bs_info.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'src/core/bs_info.c') diff --git a/src/core/bs_info.c b/src/core/bs_info.c index 36625a731..0541d747e 100644 --- a/src/core/bs_info.c +++ b/src/core/bs_info.c @@ -15,8 +15,6 @@ #include "module.h" -void myBotServHelp(User * u); - class CommandBSInfo : public Command { private: @@ -258,19 +256,11 @@ class BSInfo : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(BOTSERV, new CommandBSInfo(), MOD_UNIQUE); - - this->SetBotHelp(myBotServHelp); + } + void BotServHelp(User *u) + { + notice_lang(s_BotServ, u, BOT_HELP_CMD_INFO); } }; - -/** - * Add the help response to Anopes /bs help output. - * @param u The user who is requesting help - **/ -void myBotServHelp(User * u) -{ - notice_lang(s_BotServ, u, BOT_HELP_CMD_INFO); -} - MODULE_INIT("bs_info", BSInfo) -- cgit