diff options
Diffstat (limited to 'src')
112 files changed, 323 insertions, 149 deletions
diff --git a/src/core/bs_act.c b/src/core/bs_act.c index c8616170a..96d7e3c93 100644 --- a/src/core/bs_act.c +++ b/src/core/bs_act.c @@ -76,8 +76,10 @@ class BSAct : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(BOTSERV, new CommandBSAct()); + + ModuleManager::Attach(I_OnBotServHelp, this); } - void BotServHelp(User *u) + void OnBotServHelp(User *u) { notice_lang(s_BotServ, u, BOT_HELP_CMD_ACT); } diff --git a/src/core/bs_assign.c b/src/core/bs_assign.c index e6d619095..d710cb11e 100644 --- a/src/core/bs_assign.c +++ b/src/core/bs_assign.c @@ -87,8 +87,10 @@ class BSAssign : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(BOTSERV, new CommandBSAssign); + + ModuleManager::Attach(I_OnBotServHelp, this); } - void BotServHelp(User *u) + void OnBotServHelp(User *u) { notice_lang(s_BotServ, u, BOT_HELP_CMD_ASSIGN); } diff --git a/src/core/bs_badwords.c b/src/core/bs_badwords.c index 405dbf2a6..bef4a7dad 100644 --- a/src/core/bs_badwords.c +++ b/src/core/bs_badwords.c @@ -296,8 +296,10 @@ class BSBadwords : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(BOTSERV, new CommandBSBadwords); + + ModuleManager::Attach(I_OnBotServHelp, this); } - void BotServHelp(User *u) + void OnBotServHelp(User *u) { notice_lang(s_BotServ, u, BOT_HELP_CMD_BADWORDS); } diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c index 6c6c83ea1..e6a6e59e8 100644 --- a/src/core/bs_bot.c +++ b/src/core/bs_bot.c @@ -434,8 +434,10 @@ class BSBot : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(BOTSERV, new CommandBSBot()); + + ModuleManager::Attach(I_OnBotServHelp, this); } - void BotServHelp(User *u) + void OnBotServHelp(User *u) { notice_lang(s_BotServ, u, BOT_HELP_CMD_BOT); } diff --git a/src/core/bs_botlist.c b/src/core/bs_botlist.c index c29ce19ee..9c3e27060 100644 --- a/src/core/bs_botlist.c +++ b/src/core/bs_botlist.c @@ -79,8 +79,10 @@ class BSBotList : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(BOTSERV, new CommandBSBotList()); + + ModuleManager::Attach(I_OnBotServHelp, this); } - void BotServHelp(User *u) + void OnBotServHelp(User *u) { notice_lang(s_BotServ, u, BOT_HELP_CMD_BOTLIST); } diff --git a/src/core/bs_help.c b/src/core/bs_help.c index e76943636..ae0e73fdf 100644 --- a/src/core/bs_help.c +++ b/src/core/bs_help.c @@ -34,7 +34,7 @@ class CommandBSHelp : public Command { // Abuse syntax error to display general list help. notice_help(s_BotServ, u, BOT_HELP); - moduleDisplayHelp(s_BotServ, u); + FOREACH_MOD(I_OnBotServHelp, OnBotServHelp(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 0ea8a5791..eb438e572 100644 --- a/src/core/bs_info.c +++ b/src/core/bs_info.c @@ -253,8 +253,10 @@ class BSInfo : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(BOTSERV, new CommandBSInfo()); + + ModuleManager::Attach(I_OnBotServHelp, this); } - void BotServHelp(User *u) + void OnBotServHelp(User *u) { notice_lang(s_BotServ, u, BOT_HELP_CMD_INFO); } diff --git a/src/core/bs_kick.c b/src/core/bs_kick.c index 0ce210019..c1294c9c2 100644 --- a/src/core/bs_kick.c +++ b/src/core/bs_kick.c @@ -357,8 +357,10 @@ class BSKick : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(BOTSERV, new CommandBSKick()); + + ModuleManager::Attach(I_OnBotServHelp, this); } - void BotServHelp(User *u) + void OnBotServHelp(User *u) { notice_lang(s_BotServ, u, BOT_HELP_CMD_KICK); } diff --git a/src/core/bs_say.c b/src/core/bs_say.c index dbca41518..f0f8c8454 100644 --- a/src/core/bs_say.c +++ b/src/core/bs_say.c @@ -83,8 +83,10 @@ class BSSay : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(BOTSERV, new CommandBSSay()); + + ModuleManager::Attach(I_OnBotServHelp, this); } - void BotServHelp(User *u) + void OnBotServHelp(User *u) { notice_lang(s_BotServ, u, BOT_HELP_CMD_SAY); } diff --git a/src/core/bs_set.c b/src/core/bs_set.c index d5d40abd5..ec569c205 100644 --- a/src/core/bs_set.c +++ b/src/core/bs_set.c @@ -187,8 +187,10 @@ class BSSet : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(BOTSERV, new CommandBSSet()); + + ModuleManager::Attach(I_OnBotServHelp, this); } - void BotServHelp(User *u) + void OnBotServHelp(User *u) { notice_lang(s_BotServ, u, BOT_HELP_CMD_SET); } diff --git a/src/core/bs_unassign.c b/src/core/bs_unassign.c index af7f9d7d5..6b8a89eba 100644 --- a/src/core/bs_unassign.c +++ b/src/core/bs_unassign.c @@ -63,8 +63,10 @@ class BSUnassign : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(BOTSERV, new CommandBSUnassign); + + ModuleManager::Attach(I_OnBotServHelp, this); } - void BotServHelp(User *u) + void OnBotServHelp(User *u) { notice_lang(s_BotServ, u, BOT_HELP_CMD_UNASSIGN); } diff --git a/src/core/cs_access.c b/src/core/cs_access.c index 11fc323e7..83ea0f0f7 100644 --- a/src/core/cs_access.c +++ b/src/core/cs_access.c @@ -564,8 +564,10 @@ class CSAccess : public Module this->AddCommand(CHANSERV, new CommandCSAccess()); this->AddCommand(CHANSERV, new CommandCSLevels()); + + ModuleManager::Attach(I_OnChanServHelp, this); } - void ChanServHelp(User *u) + void OnChanServHelp(User *u) { notice_lang(s_ChanServ, u, CHAN_HELP_CMD_ACCESS); notice_lang(s_ChanServ, u, CHAN_HELP_CMD_LEVELS); diff --git a/src/core/cs_akick.c b/src/core/cs_akick.c index 078cd0e2e..c0f3fc12c 100644 --- a/src/core/cs_akick.c +++ b/src/core/cs_akick.c @@ -585,8 +585,10 @@ class CSAKick : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(CHANSERV, new CommandCSAKick()); + + ModuleManager::Attach(I_OnChanServHelp, this); } - void ChanServHelp(User *u) + void OnChanServHelp(User *u) { notice_lang(s_ChanServ, u, CHAN_HELP_CMD_AKICK); } diff --git a/src/core/cs_ban.c b/src/core/cs_ban.c index b6873ba89..dcb051eb2 100644 --- a/src/core/cs_ban.c +++ b/src/core/cs_ban.c @@ -169,8 +169,10 @@ class CSBan : public Module this->SetType(CORE); this->AddCommand(CHANSERV, new CommandCSBan()); this->AddCommand(CHANSERV, new CommandCSUnban()); + + ModuleManager::Attach(I_OnChanServHelp, this); } - void ChanServHelp(User *u) + void OnChanServHelp(User *u) { notice_lang(s_ChanServ, u, CHAN_HELP_CMD_BAN); notice_lang(s_ChanServ, u, CHAN_HELP_CMD_UNBAN); diff --git a/src/core/cs_clear.c b/src/core/cs_clear.c index 699c70a2f..a4f6cd224 100644 --- a/src/core/cs_clear.c +++ b/src/core/cs_clear.c @@ -290,8 +290,10 @@ class CSClear : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(CHANSERV, new CommandCSClear()); + + ModuleManager::Attach(I_OnChanServHelp, this); } - void ChanServHelp(User *u) + void OnChanServHelp(User *u) { notice_lang(s_ChanServ, u, CHAN_HELP_CMD_CLEAR); } diff --git a/sr |
