Fixed .prune in combination with .delmsgoncmd

This commit is contained in:
Kwoth 2017-01-27 06:31:50 +01:00
parent 202b032b79
commit 74fe68f54d

View File

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