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/hs_delall.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'src/core/hs_delall.c') diff --git a/src/core/hs_delall.c b/src/core/hs_delall.c index 4de865ebe..8ffb4a059 100644 --- a/src/core/hs_delall.c +++ b/src/core/hs_delall.c @@ -15,8 +15,6 @@ #include "module.h" -void myHostServHelp(User *u); - class CommandHSDelAll : public Command { public: @@ -79,18 +77,11 @@ class HSDelAll : public Module this->SetType(CORE); this->AddCommand(HOSTSERV, new CommandHSDelAll(), MOD_UNIQUE); - - this->SetHostHelp(myHostServHelp); + } + void HostServHelp(User *u) + { + notice_lang(s_HostServ, u, HOST_HELP_CMD_DELALL); } }; -/** - * Add the help response to anopes /hs help output. - * @param u The user who is requesting help - **/ -void myHostServHelp(User *u) -{ - notice_lang(s_HostServ, u, HOST_HELP_CMD_DELALL); -} - MODULE_INIT("hs_delall", HSDelAll) -- cgit