From 85350657bec0f1cd15ce625f5c795d072b25ad21 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Fri, 23 Dec 2016 04:51:14 +0100 Subject: [PATCH] Fixed empty message edits? --- src/NadekoBot/Modules/Administration/Commands/LogCommand.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/NadekoBot/Modules/Administration/Commands/LogCommand.cs b/src/NadekoBot/Modules/Administration/Commands/LogCommand.cs index 06ebe4e8..1a44e3b4 100644 --- a/src/NadekoBot/Modules/Administration/Commands/LogCommand.cs +++ b/src/NadekoBot/Modules/Administration/Commands/LogCommand.cs @@ -514,6 +514,9 @@ namespace NadekoBot.Modules.Administration if (channel == null) return Task.CompletedTask; + if (before.Content == after.Content) + return Task.CompletedTask; + LogSetting logSetting; if (!GuildLogSettings.TryGetValue(channel.Guild.Id, out logSetting) || !logSetting.IsLogging