So alhoceima suggested on IRC that someone extend Syzop's floodprot module (the one that gives you chanmode +f). Since it's a core module you have to remove it from modules.default.conf, but since that file gets overwritten during an upgrade, you better use a separate (remote) include. =]
I contemplated implementing those with another module, but there aren't any proper mode flags available. ;_;
Since I'm not gonna rehash Syzop's documentation, refer to
this page for the current arguments. My modification implements the following:
- An action D to just drop the message (I thought about using B but since there's also b this might get confuzzling).
- A floodtype r that catches repeated messages (sort of like my m_repeatprot but channel-bound instead of network-wide). It allows the actions D (drop) and b (kickban).
An example mode could be:
/mode #chan +f [2r#D]:15, so people using the same line twice in 15 seconds will get flagged. The third one will be dropped and a slightly cryptic message is shown to the spammer. Similar to m_repeatprot it will catch alternated messages. ;3
Git the mod here