summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/bs_act.c4
-rw-r--r--src/core/bs_assign.c4
-rw-r--r--src/core/bs_badwords.c4
-rw-r--r--src/core/bs_bot.c4
-rw-r--r--src/core/bs_botlist.c4
-rw-r--r--src/core/bs_help.c2
-rw-r--r--src/core/bs_info.c4
-rw-r--r--src/core/bs_kick.c4
-rw-r--r--src/core/bs_say.c4
-rw-r--r--src/core/bs_set.c4
-rw-r--r--src/core/bs_unassign.c4
-rw-r--r--src/core/cs_access.c4
-rw-r--r--src/core/cs_akick.c4
-rw-r--r--src/core/cs_ban.c4
-rw-r--r--src/core/cs_clear.c4
-rw-r--r--src/core/cs_drop.c4
-rw-r--r--src/core/cs_forbid.c4
-rw-r--r--src/core/cs_getkey.c4
-rw-r--r--src/core/cs_help.c2
-rw-r--r--src/core/cs_info.c4
-rw-r--r--src/core/cs_invite.c4
-rw-r--r--src/core/cs_kick.c4
-rw-r--r--src/core/cs_list.c4
-rw-r--r--src/core/cs_modes.c4
-rw-r--r--src/core/cs_register.c4
-rw-r--r--src/core/cs_set.c4
-rw-r--r--src/core/cs_status.c4
-rw-r--r--src/core/cs_suspend.c4
-rw-r--r--src/core/cs_topic.c4
-rw-r--r--src/core/cs_xop.c4
-rw-r--r--src/core/hs_del.c4
-rw-r--r--src/core/hs_delall.c4
-rw-r--r--src/core/hs_group.c4
-rw-r--r--src/core/hs_help.c2
-rw-r--r--src/core/hs_list.c4
-rw-r--r--src/core/hs_off.c4
-rw-r--r--src/core/hs_on.c4
-rw-r--r--src/core/hs_set.c4
-rw-r--r--src/core/hs_setall.c4
-rw-r--r--src/core/ms_cancel.c4
-rw-r--r--src/core/ms_check.c4
-rw-r--r--src/core/ms_del.c4
-rw-r--r--src/core/ms_help.c2
-rw-r--r--src/core/ms_info.c4
-rw-r--r--src/core/ms_list.c4
-rw-r--r--src/core/ms_read.c4
-rw-r--r--src/core/ms_rsend.c4
-rw-r--r--src/core/ms_send.c4
-rw-r--r--src/core/ms_sendall.c4
-rw-r--r--src/core/ms_set.c4
-rw-r--r--src/core/ms_staff.c4
-rw-r--r--src/core/ns_access.c4
-rw-r--r--src/core/ns_alist.c4
-rw-r--r--src/core/ns_drop.c4
-rw-r--r--src/core/ns_forbid.c4
-rw-r--r--src/core/ns_getemail.c4
-rw-r--r--src/core/ns_getpass.c4
-rw-r--r--src/core/ns_ghost.c4
-rw-r--r--src/core/ns_group.c4
-rw-r--r--src/core/ns_help.c2
-rw-r--r--src/core/ns_identify.c4
-rw-r--r--src/core/ns_info.c4
-rw-r--r--src/core/ns_list.c4
-rw-r--r--src/core/ns_logout.c4
-rw-r--r--src/core/ns_recover.c4
-rw-r--r--src/core/ns_register.c4
-rw-r--r--src/core/ns_release.c4
-rw-r--r--src/core/ns_saset.c4
-rw-r--r--src/core/ns_sendpass.c4
-rw-r--r--src/core/ns_set.c4
-rw-r--r--src/core/ns_status.c4
-rw-r--r--src/core/ns_suspend.c4
-rw-r--r--src/core/ns_update.c3
-rw-r--r--src/core/os_akill.c4
-rw-r--r--src/core/os_chankill.c4
-rw-r--r--src/core/os_chanlist.c4
-rw-r--r--src/core/os_clearmodes.c4
-rw-r--r--src/core/os_defcon.c6
-rw-r--r--src/core/os_global.c4
-rw-r--r--src/core/os_help.c2
-rw-r--r--src/core/os_ignore.c4
-rw-r--r--src/core/os_jupe.c4
-rw-r--r--src/core/os_kick.c4
-rw-r--r--src/core/os_mode.c4
-rw-r--r--src/core/os_modinfo.c4
-rw-r--r--src/core/os_modlist.c4
-rw-r--r--src/core/os_modload.c4
-rw-r--r--src/core/os_modunload.c4
-rw-r--r--src/core/os_news.c6
-rw-r--r--src/core/os_noop.c4
-rw-r--r--src/core/os_oline.c4
-rw-r--r--src/core/os_quit.c4
-rw-r--r--src/core/os_reload.c4
-rw-r--r--src/core/os_restart.c4
-rw-r--r--src/core/os_session.c4
-rw-r--r--src/core/os_set.c4
-rw-r--r--src/core/os_sgline.c4
-rw-r--r--src/core/os_shutdown.c4
-rw-r--r--src/core/os_sqline.c4
-rw-r--r--src/core/os_staff.c4
-rw-r--r--src/core/os_stats.c4
-rw-r--r--src/core/os_svsnick.c4
-rw-r--r--src/core/os_szline.c4
-rw-r--r--src/core/os_umode.c4
-rw-r--r--src/core/os_update.c4
-rw-r--r--src/core/os_userlist.c4
-rw-r--r--src/modules.c34
-rw-r--r--src/modules/cs_appendtopic.c4
-rw-r--r--src/modules/cs_enforce.c4
-rw-r--r--src/modules/cs_tban.c4
-rw-r--r--src/modules/hs_request.c4
-rw-r--r--src/modules/os_info.c7
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