From b13b351dfb0e579d08fedb280f01ea17efafd151 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Tue, 27 Jan 2026 12:07:21 -0500 Subject: [PATCH] KeywordNotify: Revert some changes --- src/equicordplugins/keywordNotify/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/equicordplugins/keywordNotify/index.tsx b/src/equicordplugins/keywordNotify/index.tsx index 573841bdb..68878903d 100644 --- a/src/equicordplugins/keywordNotify/index.tsx +++ b/src/equicordplugins/keywordNotify/index.tsx @@ -392,7 +392,7 @@ export default definePlugin({ let listed = entry.listIds.some(id => id.trim() === m.channel_id || id === m.author.id); if (!listed) { const channel = ChannelStore.getChannel(m.channel_id); - if (channel !== null) { + if (channel != null) { listed = entry.listIds.some(id => id.trim() === channel.guild_id); } } @@ -418,7 +418,7 @@ export default definePlugin({ if (safeMatchesRegex(embed.description, entry.regex, flags) || safeMatchesRegex(embed.title, entry.regex, flags)) { matches = true; break; - } else if (embed.fields !== null) { + } else if (embed.fields != null) { for (const field of embed.fields as Array<{ name: string, value: string; }>) { if (safeMatchesRegex(field.value, entry.regex, flags) || safeMatchesRegex(field.name, entry.regex, flags)) { matches = true;