From 4f3ae59bc7ab900e4ab7ec3247ffe754e2eed91d Mon Sep 17 00:00:00 2001 From: jamesbt365 Date: Mon, 6 Jan 2025 02:55:48 +0000 Subject: [PATCH] Improve code quality and use new settings route Co-authored-by: sadan4 <117494111+sadan4@users.noreply.github.com> --- src/plugins/noBlockedMessages/index.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/plugins/noBlockedMessages/index.ts b/src/plugins/noBlockedMessages/index.ts index 1c01b496f..27d498dd7 100644 --- a/src/plugins/noBlockedMessages/index.ts +++ b/src/plugins/noBlockedMessages/index.ts @@ -83,11 +83,7 @@ export default definePlugin({ if (RelationshipStore.isBlocked(message.author.id)) { return true; } - if (this.options.ignoreIgnoredMessages && RelationshipStore.isIgnored(message.author.id)) { - return true; - } - - return false; + return settings.store.ignoreIgnoredMessages && RelationshipStore.isIgnored(message.author.id); } catch (e) { new Logger("NoBlockedMessages").error("Failed to check if user is blocked or ignored:", e); return false;