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_sgline.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'src/core/os_sgline.c') diff --git a/src/core/os_sgline.c b/src/core/os_sgline.c index 958e2547a..02bad147a 100644 --- a/src/core/os_sgline.c +++ b/src/core/os_sgline.c @@ -16,7 +16,6 @@ #include "module.h" #include "hashcomp.h" -void myOperServHelp(User *u); int sgline_view_callback(SList *slist, int number, void *item, va_list args); int sgline_list_callback(SList *slist, int number, void *item, va_list args); int sgline_view(int number, SXLine *sx, User *u, int *sent_header); @@ -331,22 +330,15 @@ class OSSGLine : public Module this->AddCommand(OPERSERV, new CommandOSSGLine(), MOD_UNIQUE); - this->SetOperHelp(myOperServHelp); - if (!ircd->sgline) throw ModuleException("Your IRCd does not support SGLine"); } + void OperServHelp(User *u) + { + notice_lang(s_OperServ, u, OPER_HELP_CMD_SGLINE); + } }; -/** - * 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_SGLINE); -} - /* Lists an SGLINE entry, prefixing it with the header if needed */ int sgline_view(int number, SXLine *sx, User *u, int *sent_header) { -- cgit