From df9e7c3eb93ad52b3fd364f2aa8766e6c2d81a3d Mon Sep 17 00:00:00 2001 From: spiral Date: Fri, 14 Jan 2022 15:11:42 -0500 Subject: [PATCH] fix: correctly check log blacklist for messages edited outside the target guild --- PluralKit.Bot/Services/LogChannelService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Services/LogChannelService.cs b/PluralKit.Bot/Services/LogChannelService.cs index 748bee25..b293c1fc 100644 --- a/PluralKit.Bot/Services/LogChannelService.cs +++ b/PluralKit.Bot/Services/LogChannelService.cs @@ -71,7 +71,7 @@ public class LogChannelService // we're editing a message from a different server, get log channel info from the database var guild = await _repo.GetGuild(proxiedMessage.Guild.Value); logChannelId = guild.LogChannel; - isBlacklisted = guild.Blacklist.Any(x => x == logChannelId); + isBlacklisted = guild.LogBlacklist.Any(x => x == trigger.ChannelId); } if (ctx.SystemId == null || logChannelId == null || isBlacklisted) return null;