From 26be5d0f4479f84ef2d5b97646c91913f89d2668 Mon Sep 17 00:00:00 2001 From: Video Date: Sun, 11 Sep 2022 12:47:58 -0600 Subject: [PATCH] Fixes bug where adminchat messages were duplicated when sent from in-game Yet another bug discovered during testing before the release was to be cut --- .../me/totalfreedom/totalfreedommod/discord/Discord.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java b/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java index d2b6e909..7ec95ed0 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java @@ -374,12 +374,6 @@ public class Discord extends FreedomService CompletableFuture sentMessage = Objects.requireNonNull(bot.getTextChannelById(chat_channel_id)).sendMessage(sanitizedMessage).submit(true); sentMessages.add(sentMessage); } - - if (enabled && !chat_channel_id.isEmpty()) - { - CompletableFuture sentMessage = Objects.requireNonNull(bot.getTextChannelById(chat_channel_id)).sendMessage(deformat(message)).submit(true); - sentMessages.add(sentMessage); - } } public String formatBotTag()