evilnet / nefarious2

Nefarious IRCu (Based on IRCu 2.10.12)
Other
39 stars 23 forks source link

[Feature Request]: Mode that throttles messages after /joining a channel #58

Open Jigsy1 opened 6 years ago

Jigsy1 commented 6 years ago

What with the recent "freenodegate" spam attack - which is still ongoing I believe - would it be possible to include a channel mode which prevents a user from saying anything in a channel unless they've been in it for more than X seconds?

Using +J as an example (since I'm not sure what letters are already in use): /mode #chan +J 120 - means that they need to be in #chan for 120 seconds before they can speak otherwise the message is discarded.

This would most likely require caching the Unix Epoch of the time the user joined a channel then comparing it against the current epoch.