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; }