summaryrefslogtreecommitdiff
path: root/src/core/cs_akick.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-06 21:25:56 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-06 21:25:56 +0000
commit578da38d30893ca33cc1aa9183e4b82d67c831f3 (patch)
treecd2bada4c31d277463d44a63a8257339dbbcad26 /src/core/cs_akick.c
parentfbb1ab92468cce3b4414a1232c4efc77d34e27c8 (diff)
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
Diffstat (limited to 'src/core/cs_akick.c')
-rw-r--r--src/core/cs_akick.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/src/core/cs_akick.c b/src/core/cs_akick.c
index 524b80fb5..b3b272437 100644
--- a/src/core/cs_akick.c
+++ b/src/core/cs_akick.c
@@ -15,11 +15,6 @@
#include "module.h"
-
-void myChanServHelp(User * u);
-
-
-
/* Split a usermask up into its constitutent parts. Returned strings are
* malloc()'d, and should be free()'d when done with. Returns "*" for
* missing parts.
@@ -51,16 +46,6 @@ static void split_usermask(const char *mask, const char **nick, const char **use
delete [] mask2;
}
-
-/**
- * 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_AKICK);
-}
-
int akick_del(User * u, AutoKick * akick)
{
if (!(akick->flags & AK_USED))
@@ -688,8 +673,10 @@ class CSAKick : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
this->AddCommand(CHANSERV, new CommandCSAKick(), MOD_UNIQUE);
-
- this->SetChanHelp(myChanServHelp);
+ }
+ void ChanServHelp(User *u)
+ {
+ notice_lang(s_ChanServ, u, CHAN_HELP_CMD_AKICK);
}
};