forked from Galactic/galactic-bot
added the link think to the wrong line
This commit is contained in:
parent
2d361fb523
commit
67e796d334
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user