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/cs_kick.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'src/core/cs_kick.c') diff --git a/src/core/cs_kick.c b/src/core/cs_kick.c index db53e22aa..c14b0f0a3 100644 --- a/src/core/cs_kick.c +++ b/src/core/cs_kick.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_KICK); -} - class CommandCSKick : public Command { public: @@ -112,8 +103,10 @@ class CSKick : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(CHANSERV, new CommandCSKick(), MOD_UNIQUE); - - this->SetChanHelp(myChanServHelp); + } + void ChanServHelp(User *u) + { + notice_lang(s_ChanServ, u, CHAN_HELP_CMD_KICK); } }; -- cgit