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/os_akill.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'src/core/os_akill.c') diff --git a/src/core/os_akill.c b/src/core/os_akill.c index e3ac8d5e8..59003ed7d 100644 --- a/src/core/os_akill.c +++ b/src/core/os_akill.c @@ -15,7 +15,6 @@ #include "module.h" -void myOperServHelp(User *u); int akill_view_callback(SList *slist, int number, void *item, va_list args); int akill_list_callback(SList *slist, int number, void *item, va_list args); int akill_view(int number, Akill *ak, User *u, int *sent_header); @@ -331,20 +330,13 @@ class OSAKill : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(OPERSERV, new CommandOSAKill(), MOD_UNIQUE); - - this->SetOperHelp(myOperServHelp); + } + void OperServHelp(User *u) + { + notice_lang(s_OperServ, u, OPER_HELP_CMD_AKILL); } }; -/** - * Add the help response to anopes /os help output. - * @param u The user who is requesting help - **/ -void myOperServHelp(User *u) -{ - notice_lang(s_OperServ, u, OPER_HELP_CMD_AKILL); -} - int akill_view(int number, Akill *ak, User *u, int *sent_header) { char mask[BUFSIZE]; -- cgit