Subject: | Flood control broken - kicks even if messages are a long way apart |
Looks like the anti-flood kicking code is a little broken:
* It never forgets timestamps, so a long-running bot on a busy channel
will slowly use more and more memory
* More importantly, it considers all messages when looking to see if
you've sent too many, rather than just messages less than
user_flood_seconds ago, leading to things like:
09:45 -!- bigpresh was kicked from #channel by sophie [Stop flooding the
channel (7 messages in 35033 seconds).] (That was with the default
settings - user_flood_seconds=4 and user_flood_messages=6)
I'm happy to supply a patch to fix this if you'll accept it?