diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-06 21:25:56 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-06 21:25:56 +0000 |
commit | 578da38d30893ca33cc1aa9183e4b82d67c831f3 (patch) | |
tree | cd2bada4c31d277463d44a63a8257339dbbcad26 /src/modules/cs_tban.c | |
parent | fbb1ab92468cce3b4414a1232c4efc77d34e27c8 (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/modules/cs_tban.c')
-rw-r--r-- | src/modules/cs_tban.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/modules/cs_tban.c b/src/modules/cs_tban.c index 0e86007d5..358a4718c 100644 --- a/src/modules/cs_tban.c +++ b/src/modules/cs_tban.c @@ -21,7 +21,6 @@ #define AUTHOR "Rob" #define VERSION "$Id$" -void myHelp(User *u); void mySendResponse(User *u, const char *channel, char *mask, const char *time); void addBan(Channel *c, time_t timeout, char *banmask); @@ -94,7 +93,6 @@ class CSTBan : public Module { me = this; - this->SetChanHelp(myHelp); this->AddCommand(CHANSERV, new CommandCSTBan(), MOD_HEAD); this->SetAuthor(AUTHOR); @@ -158,13 +156,12 @@ class CSTBan : public Module this->InsertLanguage(LANG_RU, LANG_NUM_STRINGS, langtable_ru); this->InsertLanguage(LANG_IT, LANG_NUM_STRINGS, langtable_it); } + void ChanServHelp(User *u) + { + this->NoticeLang(s_ChanServ, u, TBAN_HELP); + } }; -void myHelp(User *u) -{ - me->NoticeLang(s_ChanServ, u, TBAN_HELP); -} - void mySendResponse(User *u, const char *channel, char *mask, const char *time) { me->NoticeLang(s_ChanServ, u, TBAN_RESPONSE, mask, channel, time); |