This commit is contained in:
Chayapak 2023-07-23 08:43:29 +07:00
parent 2cb5269d78
commit 69f18ba463

View file

@ -224,10 +224,10 @@ public class ChatPlugin extends Bot.Listener {
}
private void sendChatTick () {
if (queue.isEmpty()) return;
if (queue.size() > 50) queue.clear(); // detects spam, like spamming *echo for example
if (queue.isEmpty()) return;
final String message = queue.get(0);
if (message.startsWith("/")) {