From baefabe8afdea6f1999f9e78e03742f130212ecb Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 22 Oct 2023 08:52:05 +0700 Subject: [PATCH] lazily fix --- .../chipmunk/chayapak/chomens_bot/plugins/IRCPlugin.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/IRCPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/IRCPlugin.java index a5e6374..11e7780 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/IRCPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/IRCPlugin.java @@ -8,7 +8,6 @@ import land.chipmunk.chayapak.chomens_bot.command.IRCCommandContext; import land.chipmunk.chayapak.chomens_bot.data.IRCMessage; import land.chipmunk.chayapak.chomens_bot.data.chat.PlayerMessage; import land.chipmunk.chayapak.chomens_bot.irc.IRCMessageLoop; -import land.chipmunk.chayapak.chomens_bot.util.ComponentUtilities; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.event.HoverEvent; import net.kyori.adventure.text.format.NamedTextColor; @@ -23,7 +22,7 @@ public class IRCPlugin extends IRCMessageLoop { private final Map> messageQueue = new HashMap<>(); - private String lastMessage = ""; +// private String lastMessage = ""; public IRCPlugin (Configuration config) { super(config.irc.host, config.irc.port); @@ -132,6 +131,9 @@ public class IRCPlugin extends IRCMessageLoop { } private void playerMessageReceived (Bot bot, PlayerMessage message) { + // best fix in 2023 + + /* final String stringifiedName = ComponentUtilities.stringify(message.displayName); final String stringifiedContents = ComponentUtilities.stringify(message.contents); @@ -149,6 +151,7 @@ public class IRCPlugin extends IRCMessageLoop { bot, toSend ); + */ } // i only have listened to connected because the ratelimit