From 606423d74e34f8468002714b181cd43c3c8869a2 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Wed, 13 Jul 2022 00:25:13 +0300 Subject: [PATCH] blergh --- src/structure/components/observers/Automoderation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structure/components/observers/Automoderation.js b/src/structure/components/observers/Automoderation.js index 91bc3ea..2376a89 100644 --- a/src/structure/components/observers/Automoderation.js +++ b/src/structure/components/observers/Automoderation.js @@ -480,8 +480,8 @@ module.exports = class AutoModeration extends Observer { // console.log(parts, validTld); if (!validTld) continue; const valid = await resolver.validateDomain(domain); - if (!valid && match.includes(`${domain}/`)) { - this.client.emit('linkFilterWarn', { guild: wrapper, message: wrapper.format('LINKFILTER_WARN', { domain, link: match }) }); + if (!valid) { + if (match.includes(`${domain}/`)) this.client.emit('linkFilterWarn', { guild: wrapper, message: wrapper.format('LINKFILTER_WARN', { domain, link: match }) }); continue; }