From ffcbfe6467c78a69e2ea05e8ed4fcb92613ae6e0 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Thu, 22 Dec 2022 21:09:00 +0100 Subject: [PATCH] Fixed a bug for .quotedeleteauthor causing the executing user to delete own messages --- src/NadekoBot/Modules/Utility/Quote/QuoteCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Utility/Quote/QuoteCommands.cs b/src/NadekoBot/Modules/Utility/Quote/QuoteCommands.cs index faabf1691..05edfba95 100644 --- a/src/NadekoBot/Modules/Utility/Quote/QuoteCommands.cs +++ b/src/NadekoBot/Modules/Utility/Quote/QuoteCommands.cs @@ -270,7 +270,7 @@ public partial class Utility if (userId == ctx.User.Id || hasManageMessages) { - var deleted = await _qs.DeleteAllAuthorQuotesAsync(ctx.Guild.Id, ctx.User.Id); + var deleted = await _qs.DeleteAllAuthorQuotesAsync(ctx.Guild.Id, userId); await ReplyConfirmLocalizedAsync(strs.quotes_deleted_count(deleted)); } else