Needs spam protection
Tibsfox opened this issue · 3 comments
users in game flood causing bot to crash or be dropped from the irc server, anti-spam plugins seem to have no effect when using CraftIRC + HeroChat
example of log when a user is spamming * these are automated flood spams, 1000's of msgs per second.
2011-07-22 17:56:43 [INFO] CraftIRC v2.0 Preview 11 loading.
2011-07-22 17:56:43 [INFO] CraftIRC v2.0 Preview 11 loading.
2011-07-22 17:56:43 [INFO] CraftIRC v2.0 Preview 11 loading.
2011-07-22 17:56:43 [INFO] CraftIRC - Connecting to --snip--
2011-07-22 17:56:43 [INFO] CraftIRC - Connecting to --snip--
2011-07-22 17:56:43 [INFO] CraftIRC - Connecting to --snip--
2011-07-22 17:56:43 [INFO] CraftIRC - Connected
2011-07-22 17:56:43 [INFO] CraftIRC v2.0 Preview 11 loading.
2011-07-22 17:56:43 [INFO] CraftIRC v2.0 Preview 11 loading.
2011-07-22 17:56:43 [INFO] CraftIRC - Connecting to --snip--
2011-07-22 17:56:43 [INFO] CraftIRC - Connected
2011-07-22 17:56:43 [INFO] CraftIRC - disconnected from IRC server... reconnecting!
2011-07-22 17:56:43 [INFO] CraftIRC v2.0 Preview 11 loading.
2011-07-22 17:56:43 [SEVERE] java.io.IOException: The PircBot is already connected to an IRC server. Disconnect first.
2011-07-22 17:56:43 [SEVERE] at org.jibble.pircbot.PircBot.connect(PircBot.java:232)
2011-07-22 17:56:43 [SEVERE] at org.jibble.pircbot.PircBot.connect(PircBot.java:202)
2011-07-22 17:56:43 [SEVERE] at com.ensifera.animosity.craftirc.Minebot.start(Minebot.java:107)
2011-07-22 17:56:43 [INFO] CraftIRC v2.0 Preview 11 loading.
2011-07-22 17:56:43 [INFO] CraftIRC v2.0 Preview 11 loading.
2011-07-22 17:56:43 [INFO] CraftIRC v2.0 Preview 11 loading.
Already implemented in bots.(bot).message-delay .
That just delays the time between messages and does not stop the person spamming unless I am missing something. It seems to happily buffer up thousands of msgs and take several minutes to clear out.
I added a queue size; I'm not sure it's working though.