From 17440e180541b6c05f2dbc0d106c2abc3fc56feb Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Fri, 18 Oct 2024 11:43:22 +0700 Subject: [PATCH] irc fixies --- src/main/java/me/chayapak1/chomens_bot/plugins/IRCPlugin.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/chayapak1/chomens_bot/plugins/IRCPlugin.java b/src/main/java/me/chayapak1/chomens_bot/plugins/IRCPlugin.java index 0b929fd..62fb1a8 100644 --- a/src/main/java/me/chayapak1/chomens_bot/plugins/IRCPlugin.java +++ b/src/main/java/me/chayapak1/chomens_bot/plugins/IRCPlugin.java @@ -187,7 +187,9 @@ public class IRCPlugin extends ListenerAdapter { if (!bot.isConnected() || messageQueue.isEmpty()) return; try { - for (Map.Entry> entry : messageQueue.entrySet()) { + final Map> clonedMap = new HashMap<>(messageQueue); + + for (Map.Entry> entry : clonedMap.entrySet()) { final List logs = entry.getValue(); if (logs.isEmpty()) continue;