[DONE] Extend floodprot with drop action + repeat trigger
Posted: Fri Nov 25, 2016 9:39 pm
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:
Git the mod here
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).
Git the mod here