From 67e796d334f3717a86f0e6255a08c5a9e628305f Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Tue, 12 Jul 2022 21:16:29 +0300 Subject: [PATCH] added the link think to the wrong line --- 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 af0c7b6..91bc3ea 100644 --- a/src/structure/components/observers/Automoderation.js +++ b/src/structure/components/observers/Automoderation.js @@ -478,9 +478,9 @@ module.exports = class AutoModeration extends Observer { const parts = domain.split('.'); const validTld = this.topLevelDomains.find(parts[parts.length - 1]); // console.log(parts, validTld); - if (!validTld && !match.includes(`${domain}/`)) continue; + if (!validTld) continue; const valid = await resolver.validateDomain(domain); - if (!valid) { + if (!valid && match.includes(`${domain}/`)) { this.client.emit('linkFilterWarn', { guild: wrapper, message: wrapper.format('LINKFILTER_WARN', { domain, link: match }) }); continue; }