fixed error message in the console when >pick is used while .delmsgoncmd is enabled

This commit is contained in:
Master Kwoth 2017-05-16 22:57:56 +02:00
parent 515dfc1eb2
commit f26fa4dfcc

View File

@ -41,7 +41,7 @@ namespace NadekoBot.Modules.Administration
var channel = msg.Channel as SocketTextChannel;
if (channel == null)
return;
if (deleteMessagesOnCommand.Contains(channel.Guild.Id) && cmd.Name != "prune")
if (deleteMessagesOnCommand.Contains(channel.Guild.Id) && cmd.Name != "prune" && cmd.Name != "pick")
await msg.DeleteAsync().ConfigureAwait(false);
}
catch (Exception ex)