mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-29 13:46:38 +02:00
4384f1127b
Suggested by westid in https://bugs.unrealircd.org/view.php?id=6477 * New [crule function](https://www.unrealircd.org/docs/Crule) that return the number of times a flood was blocked for that user. For example, `server_flood_count('away')` returns the number of time away-flood was exceeded. Aslo available: `nick`, `join`, `invite`, `knock`, `vhost` and `conversations`. Plus, there is `all` for a total of all. * This can be used in a security-group::rule or spamfilter::rule. Eg: `spamfilter { rule "server_flood_count('nick')>4"; action gline; }` This also - internally - adds a mechanism to run spamfilter rule-only- filters after the command handler, whenever a tag value or other thing changed. That's part of this commit.