From c6a259cf3ea062971c4c32b75f6f4143ed941a30 Mon Sep 17 00:00:00 2001 From: Tom_The_Geek <23531706+Tom-The-Geek@users.noreply.github.com> Date: Sun, 4 Jul 2021 15:29:09 +0100 Subject: [PATCH] Fix #18 (#19) --- .../blockbot/command/discord/DiscordCommandOutput.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/github/quiltservertools/blockbot/command/discord/DiscordCommandOutput.java b/src/main/java/com/github/quiltservertools/blockbot/command/discord/DiscordCommandOutput.java index 8ea15f0..af37314 100644 --- a/src/main/java/com/github/quiltservertools/blockbot/command/discord/DiscordCommandOutput.java +++ b/src/main/java/com/github/quiltservertools/blockbot/command/discord/DiscordCommandOutput.java @@ -30,7 +30,9 @@ public void sendSystemMessage(Text message, UUID senderUuid) { } buffer.append(content); } else { - this.channel.sendMessage(content).queue(); + if (!content.isBlank()) { // some mods are naughty and send empty messages :> + this.channel.sendMessage(content).queue(); + } } }