Fixed .prune X

This commit is contained in:
Kwoth 2017-03-01 12:36:28 +01:00
parent b588edeeee
commit d17055f364

View File

@ -452,7 +452,6 @@ namespace NadekoBot.Modules.Administration
{ {
if (count < 1) if (count < 1)
return; return;
count += 1;
await Context.Message.DeleteAsync().ConfigureAwait(false); await Context.Message.DeleteAsync().ConfigureAwait(false);
int limit = (count < 100) ? count : 100; int limit = (count < 100) ? count : 100;
var enumerable = (await Context.Channel.GetMessagesAsync(limit: limit).Flatten().ConfigureAwait(false)); var enumerable = (await Context.Channel.GetMessagesAsync(limit: limit).Flatten().ConfigureAwait(false));