From facf138beecca1c2c11eea336a8e030a5af66abd Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sun, 24 Jul 2016 18:00:25 +0200 Subject: [PATCH] ?! --- NadekoBot/Modules/Administration/AdministrationModule.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NadekoBot/Modules/Administration/AdministrationModule.cs b/NadekoBot/Modules/Administration/AdministrationModule.cs index ad28d083..c52286b3 100644 --- a/NadekoBot/Modules/Administration/AdministrationModule.cs +++ b/NadekoBot/Modules/Administration/AdministrationModule.cs @@ -636,7 +636,8 @@ namespace NadekoBot.Modules.Administration Message[] msgs; if (string.IsNullOrWhiteSpace(e.GetArg("user_or_num"))) // if nothing is set, clear nadeko's messages, no permissions required { - msgs = (await e.Channel.DownloadMessages(100).ConfigureAwait(false)).Where(m => m.User.Id == e.Server.CurrentUser.Id).ToArray(); + msgs = (await e.Channel.DownloadMessages(100).ConfigureAwait(false));//.Where(m => m.User.Id == e.Server.CurrentUser.Id).ToArray(); + msgs = msgs.Where(m => m.User.Id == e.Server.CurrentUser.Id).ToArray(); if (!msgs.Any()) return; await e.Channel.DeleteMessages(msgs).ConfigureAwait(false);