irc fixies

This commit is contained in:
Chayapak 2024-10-18 11:43:22 +07:00
parent 3a0676d7c7
commit 17440e1805

View file

@ -187,7 +187,9 @@ public class IRCPlugin extends ListenerAdapter {
if (!bot.isConnected() || messageQueue.isEmpty()) return; if (!bot.isConnected() || messageQueue.isEmpty()) return;
try { try {
for (Map.Entry<String, List<String>> entry : messageQueue.entrySet()) { final Map<String, List<String>> clonedMap = new HashMap<>(messageQueue);
for (Map.Entry<String, List<String>> entry : clonedMap.entrySet()) {
final List<String> logs = entry.getValue(); final List<String> logs = entry.getValue();
if (logs.isEmpty()) continue; if (logs.isEmpty()) continue;