diff options
| author | Adam <Adam@anope.org> | 2014-04-20 14:35:14 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2014-04-20 14:35:14 -0400 |
| commit | 26ac315192e0d8a04d50e910697ab794eedf0cc1 (patch) | |
| tree | b9916f14fe35ce5c4de95c4194ca4ea0cb30812f /include/modules/bs_badwords.h | |
| parent | 0b6476f06ff9ce06545c421143c7d7163c750aa5 (diff) | |
New event system
Diffstat (limited to 'include/modules/bs_badwords.h')
| -rw-r--r-- | include/modules/bs_badwords.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/modules/bs_badwords.h b/include/modules/bs_badwords.h index 678512c96..390e502c0 100644 --- a/include/modules/bs_badwords.h +++ b/include/modules/bs_badwords.h @@ -71,3 +71,21 @@ struct BadWords virtual void Check() = 0; }; +namespace Event +{ + struct CoreExport BadWordEvents : Events + { + /** Called before a badword is added to the badword list + * @param ci The channel + * @param bw The badword + */ + virtual void OnBadWordAdd(ChannelInfo *ci, const BadWord *bw) anope_abstract; + + /** Called before a badword is deleted from a channel + * @param ci The channel + * @param bw The badword + */ + virtual void OnBadWordDel(ChannelInfo *ci, const BadWord *bw) anope_abstract; + }; +} + |
