1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 22:23:12 +02:00

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
This commit is contained in:
cyberbotx
2009-04-06 21:25:56 +00:00
parent fbb1ab9246
commit 578da38d30
121 changed files with 551 additions and 1576 deletions
+4 -8
View File
@@ -48,8 +48,6 @@
#define LNG_CHAN_HELP_APPENDTOPIC 1
#define LNG_APPENDTOPIC_SYNTAX 2
void my_cs_help(User *u);
static Module *me;
class CommandCSAppendTopic : public Command
@@ -145,7 +143,6 @@ class CSAppendTopic : public Module
this->SetType(SUPPORTED);
this->AddCommand(CHANSERV, new CommandCSAppendTopic(), MOD_HEAD);
this->SetChanHelp(my_cs_help);
/* English (US) */
const char* langtable_en_us[] = {
@@ -227,11 +224,10 @@ class CSAppendTopic : public Module
this->InsertLanguage(LANG_RU, LNG_NUM_STRINGS, langtable_ru);
this->InsertLanguage(LANG_IT, LNG_NUM_STRINGS, langtable_it);
}
void ChanServHelp(User *u)
{
this->NoticeLang(s_ChanServ, u, LNG_CHAN_HELP);
}
};
void my_cs_help(User *u)
{
me->NoticeLang(s_ChanServ, u, LNG_CHAN_HELP);
}
MODULE_INIT("cs_appendtopic", CSAppendTopic)