From 42f7cc9a315f72566379d3c74ac63fc185e7e96c Mon Sep 17 00:00:00 2001 From: Kwoth Date: Mon, 16 Jan 2017 14:15:24 +0100 Subject: [PATCH] Fixed empty log spam --- src/NadekoBot/Modules/Administration/Commands/LogCommand.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/NadekoBot/Modules/Administration/Commands/LogCommand.cs b/src/NadekoBot/Modules/Administration/Commands/LogCommand.cs index 96ecee55..db339d4f 100644 --- a/src/NadekoBot/Modules/Administration/Commands/LogCommand.cs +++ b/src/NadekoBot/Modules/Administration/Commands/LogCommand.cs @@ -397,6 +397,8 @@ namespace NadekoBot.Modules.Administration .AddField(efb => efb.WithName("Old Topic").WithValue(beforeTextChannel.Topic)) .AddField(efb => efb.WithName("New Topic").WithValue(afterTextChannel.Topic)); } + else + return; await logChannel.EmbedAsync(embed).ConfigureAwait(false); }