diff options
Diffstat (limited to 'src/core')
112 files changed, 468 insertions, 1414 deletions
diff --git a/src/core/bs_act.c b/src/core/bs_act.c index 3003e5afa..758ebc82c 100644 --- a/src/core/bs_act.c +++ b/src/core/bs_act.c @@ -15,8 +15,6 @@ #include "module.h" -void myBotServHelp(User * u); - class CommandBSAct : public Command { public: @@ -81,19 +79,11 @@ class BSAct : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(BOTSERV, new CommandBSAct(), MOD_UNIQUE); - - this->SetBotHelp(myBotServHelp); + } + void BotServHelp(User *u) + { + notice_lang(s_BotServ, u, BOT_HELP_CMD_ACT); } }; - -/** - * Add the help response to Anopes /bs help output. - * @param u The user who is requesting help - **/ -void myBotServHelp(User * u) -{ - notice_lang(s_BotServ, u, BOT_HELP_CMD_ACT); -} - MODULE_INIT("bs_act", BSAct) diff --git a/src/core/bs_assign.c b/src/core/bs_assign.c index f4b891820..913e68224 100644 --- a/src/core/bs_assign.c +++ b/src/core/bs_assign.c @@ -15,8 +15,6 @@ #include "module.h" -void myBotServHelp(User * u); - class CommandBSAssign : public Command { public: @@ -93,18 +91,11 @@ class BSAssign : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(BOTSERV, new CommandBSAssign, MOD_UNIQUE); - - this->SetBotHelp(myBotServHelp); + } + void BotServHelp(User *u) + { + notice_lang(s_BotServ, u, BOT_HELP_CMD_ASSIGN); } }; -/** - * Add the help response to Anopes /bs help output. - * @param u The user who is requesting help - **/ -void myBotServHelp(User * u) -{ - notice_lang(s_BotServ, u, BOT_HELP_CMD_ASSIGN); -} - MODULE_INIT("bs_assign", BSAssign) diff --git a/src/core/bs_badwords.c b/src/core/bs_badwords.c index 00d1bace2..627d84569 100644 --- a/src/core/bs_badwords.c +++ b/src/core/bs_badwords.c @@ -15,7 +15,6 @@ #include "module.h" -void myBotServHelp(User * u); int badwords_del_callback(User * u, int num, va_list args); int badwords_list(User * u, int index, ChannelInfo * ci, int *sent_header); int badwords_list_callback(User * u, int num, va_list args); @@ -311,21 +310,13 @@ class BSBadwords : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(BOTSERV, new CommandBSBadwords, MOD_UNIQUE); - - this->SetBotHelp(myBotServHelp); + } + void BotServHelp(User *u) + { + notice_lang(s_BotServ, u, BOT_HELP_CMD_BADWORDS); } }; - -/** - * Add the help response to Anopes /bs help output. - * @param u The user who is requesting help - **/ -void myBotServHelp(User * u) -{ - notice_lang(s_BotServ, u, BOT_HELP_CMD_BADWORDS); -} - int badwords_del_callback(User * u, int num, va_list args) { BadWord *bw; diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c index 36aa70b73..dc48cb628 100644 --- a/src/core/bs_bot.c +++ b/src/core/bs_bot.c @@ -15,8 +15,6 @@ #include "module.h" -void myBotServHelp(User * u); - class CommandBSBot : public Command { private: @@ -446,21 +444,11 @@ class BSBot : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(BOTSERV, new CommandBSBot(), MOD_UNIQUE); - - this->SetBotHelp(myBotServHelp); + } + void BotServHelp(User *u) + { + notice_lang(s_BotServ, u, BOT_HELP_CMD_BOT); } }; - -/** - * Add the help response to Anopes /bs help output. - * @param u The user who is requesting help - **/ -void myBotServHelp(User * u) -{ - notice_lang(s_BotServ, u, BOT_HELP_CMD_BOT); -} - - - MODULE_INIT("bs_bot", BSBot) diff --git a/src/core/bs_botlist.c b/src/core/bs_botlist.c index 190f3d9f9..e363c8545 100644 --- a/src/core/bs_botlist.c +++ b/src/core/bs_botlist.c @@ -15,8 +15,6 @@ #include "module.h" -void myBotServHelp(User * u); - class CommandBSBotList : public Command { public: @@ -81,20 +79,11 @@ class BSBotList : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(BOTSERV, new CommandBSBotList(), MOD_UNIQUE); - - this->SetBotHelp(myBotServHelp); + } + void BotServHelp(User *u) + { + notice_lang(s_BotServ, u, BOT_HELP_CMD_BOTLIST); } }; - -/** - * Add the help response to Anopes /bs help output. - * @param u The user who is requesting help - **/ -void myBotServHelp(User * u) -{ - notice_lang(s_BotServ, u, BOT_HELP_CMD_BOTLIST); -} - - MODULE_INIT("bs_botlist", BSBotList) diff --git a/src/core/bs_help.c b/src/core/bs_help.c index ae26ab9d1..92a595a1d 100644 --- a/src/core/bs_help.c +++ b/src/core/bs_help.c @@ -33,7 +33,7 @@ class CommandBSHelp : public Command { // Abuse syntax error to display general list help. notice_help(s_BotServ, u, BOT_HELP); - moduleDisplayHelp(4, u); + moduleDisplayHelp(s_BotServ, u); notice_help(s_BotServ, u, BOT_HELP_FOOTER, BSMinUsers); } }; diff --git a/src/core/bs_info.c b/src/core/bs_info.c index 36625a731..0541d747e 100644 --- a/src/core/bs_info.c +++ b/src/core/bs_info.c @@ -15,8 +15,6 @@ #include "module.h" -void myBotServHelp(User * u); - class CommandBSInfo : public Command { private: @@ -258,19 +256,11 @@ class BSInfo : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(BOTSERV, new CommandBSInfo(), MOD_UNIQUE); - - this->SetBotHelp(myBotServHelp); + } + void BotServHelp(User *u) + { + notice_lang(s_BotServ, u, BOT_HELP_CMD_INFO); } }; - -/** - * Add the help response to Anopes /bs help output. - * @param u The user who is requesting help - **/ -void myBotServHelp(User * u) -{ - notice_lang(s_BotServ, u, BOT_HELP_CMD_INFO); -} - MODULE_INIT("bs_info", BSInfo) diff --git a/src/core/bs_kick.c b/src/core/bs_kick.c index 1e7787f03..a39cb6b6d 100644 --- a/src/core/bs_kick.c +++ b/src/core/bs_kick.c @@ -17,7 +17,6 @@ int do_kickcmd(User * u); -void myBotServHelp(User * u); class CommandBSKick : public Command { public: @@ -352,20 +351,11 @@ class BSKick : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(BOTSERV, new CommandBSKick(), MOD_UNIQUE); - - this->SetBotHelp(myBotServHelp); + } + void BotServHelp(User *u) + { + notice_lang(s_BotServ, u, BOT_HELP_CMD_KICK); } }; - -/** - * Add the help response to Anopes /bs help output. - * @param u The user who is requesting help - **/ -void myBotServHelp(User * u) -{ - notice_lang(s_BotServ, u, BOT_HELP_CMD_KICK); -} - - MODULE_INIT("bs_kick", BSKick) diff --git a/src/core/bs_say.c b/src/core/bs_say.c index 153a20eb2..5a262e4b7 100644 --- a/src/core/bs_say.c +++ b/src/core/bs_say.c @@ -15,8 +15,6 @@ #include "module.h" -void myBotServHelp(User * u); - class CommandBSSay : public Command { public: @@ -90,20 +88,11 @@ class BSSay : public Module this->SetVersion("$Id$"); this->SetType(CORE); this-& |
