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
This commit is contained in:
Video 2022-09-11 12:47:58 -06:00
parent 7a724c2f13
commit 26be5d0f44
1 changed files with 0 additions and 6 deletions

View File

@ -374,12 +374,6 @@ public class Discord extends FreedomService
CompletableFuture<Message> sentMessage = Objects.requireNonNull(bot.getTextChannelById(chat_channel_id)).sendMessage(sanitizedMessage).submit(true);
sentMessages.add(sentMessage);
}
if (enabled && !chat_channel_id.isEmpty())
{
CompletableFuture<Message> sentMessage = Objects.requireNonNull(bot.getTextChannelById(chat_channel_id)).sendMessage(deformat(message)).submit(true);
sentMessages.add(sentMessage);
}
}
public String formatBotTag()