From b1b9a51c3b85757e03d8ed19053e88a246707bff Mon Sep 17 00:00:00 2001 From: Madpeter Date: Sat, 9 May 2020 19:48:09 +0100 Subject: [PATCH] adjustments to the discord command history add function --- Core/bottypes/Discord/relay.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/bottypes/Discord/relay.cs b/Core/bottypes/Discord/relay.cs index 1973fad..a411862 100644 --- a/Core/bottypes/Discord/relay.cs +++ b/Core/bottypes/Discord/relay.cs @@ -44,7 +44,10 @@ namespace BSB.bottypes public override string CommandHistoryAdd(string command, string arg, bool status, string WhyFailed) { string output = base.CommandHistoryAdd(command, arg, status, WhyFailed); - _ = SendMessageToChannelAsync("interface", output, "bot", UUID.Zero, "bot"); + if (output != "") + { + _ = SendMessageToChannelAsync("interface", output, "bot", UUID.Zero, "bot"); + } return output; } protected async Task DiscordBotChatControler(string message, string sender_name, UUID sender_uuid, bool avatar, bool group, UUID group_uuid, bool localchat, bool fromme)