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/ns_logout.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'src/core/ns_logout.c') diff --git a/src/core/ns_logout.c b/src/core/ns_logout.c index a726b1f15..0d68beae3 100644 --- a/src/core/ns_logout.c +++ b/src/core/ns_logout.c @@ -18,8 +18,6 @@ #define TO_COLLIDE 0 /* Collide the user with this nick */ #define TO_RELEASE 1 /* Release a collided nick */ -void myNickServHelp(User *u); - class CommandNSLogout : public Command { public: @@ -112,18 +110,11 @@ class NSLogout : public Module this->SetType(CORE); this->AddCommand(NICKSERV, new CommandNSLogout(), MOD_UNIQUE); - - this->SetNickHelp(myNickServHelp); + } + void NickServHelp(User *u) + { + notice_lang(s_NickServ, u, NICK_HELP_CMD_LOGOUT); } }; -/** - * Add the help response to anopes /ns help output. - * @param u The user who is requesting help - **/ -void myNickServHelp(User *u) -{ - notice_lang(s_NickServ, u, NICK_HELP_CMD_LOGOUT); -} - MODULE_INIT("ns_logout", NSLogout) -- cgit