This commit is contained in:
Erik 2022-07-13 00:25:13 +03:00
parent 58e4980bc3
commit 606423d74e
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -480,8 +480,8 @@ module.exports = class AutoModeration extends Observer {
// console.log(parts, validTld); // console.log(parts, validTld);
if (!validTld) continue; if (!validTld) continue;
const valid = await resolver.validateDomain(domain); const valid = await resolver.validateDomain(domain);
if (!valid && match.includes(`${domain}/`)) { if (!valid) {
this.client.emit('linkFilterWarn', { guild: wrapper, message: wrapper.format('LINKFILTER_WARN', { domain, link: match }) }); if (match.includes(`${domain}/`)) this.client.emit('linkFilterWarn', { guild: wrapper, message: wrapper.format('LINKFILTER_WARN', { domain, link: match }) });
continue; continue;
} }