From f4bcf833ecb4c139544bf6de5fadabca56e016e9 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sun, 28 Mar 2010 07:57:05 +0000 Subject: Finish rest of BotServ SQL stuff git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2839 5417fbe8-f217-4b02-8779-1006273d7864 --- include/modules.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 945641511..5a47db2ed 100644 --- a/include/modules.h +++ b/include/modules.h @@ -601,6 +601,18 @@ class CoreExport Module * @param mask The mask being banned */ virtual void OnBotBan(User *u, ChannelInfo *ci, const char *mask) { } + + /** Called before a badword is added to the badword list + * @param ci The channel + * @param bw The badword + */ + virtual void OnBadWordAdd(ChannelInfo *ci, BadWord *bw) { } + + /** Called before a badword is deleted from a channel + * @param ci The channel + * @param bw The badword + */ + virtual void OnBadWordDel(ChannelInfo *ci, BadWord *bw) { } /** Called before a bot kicks a user * @param bi The bot sending the kick @@ -1144,7 +1156,7 @@ enum Implementation /* BotServ */ I_OnBotServHelp, I_OnBotJoin, I_OnBotKick, I_OnBotCreate, I_OnBotChange, I_OnBotDelete, I_OnBotAssign, I_OnBotUnAssign, - I_OnUserKicked, I_OnBotFantasy, I_OnBotNoFantasyAccess, I_OnBotBan, I_OnBotPreLoad, + I_OnUserKicked, I_OnBotFantasy, I_OnBotNoFantasyAccess, I_OnBotBan, I_OnBadWordAdd, I_OnBadWordDel, /* HostServ */ I_OnHostServHelp, I_OnSetVhost, I_OnDeleteVhost, -- cgit