From d0d97173a4c3bdc0da3dd5b87c64d3c286938238 Mon Sep 17 00:00:00 2001 From: Navy Date: Thu, 12 Nov 2020 00:58:47 +0200 Subject: [PATCH] misc fixes --- structure/client/components/settings/moderation/LinkFilter.js | 3 --- .../client/components/settings/moderation/ModerationLog.js | 3 ++- structure/interfaces/FilterSetting.js | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/structure/client/components/settings/moderation/LinkFilter.js b/structure/client/components/settings/moderation/LinkFilter.js index 009aa6a..aac5c62 100644 --- a/structure/client/components/settings/moderation/LinkFilter.js +++ b/structure/client/components/settings/moderation/LinkFilter.js @@ -268,14 +268,11 @@ module.exports = class LinkFilter extends FilterSetting { const domains = await resolver.resolveDomains(params.map((word) => word.toLowerCase())); const removed = []; for (const domain of [...domains]) { - console.log(domain) const existing = actions.find((ac) => ac.trigger.includes(domain)); - console.log(existing) if (!existing) continue; domains.splice(domains.indexOf(domain), 1); removed.push(domain); } - console.log(domains) actionObject.trigger = domains; if (removed.length) message.formattedRespond('S_LINKFILTER_DOMAIN_IN_ACTION', { params: { domains: removed.join('`, `') } }); } diff --git a/structure/client/components/settings/moderation/ModerationLog.js b/structure/client/components/settings/moderation/ModerationLog.js index d80a940..c705b27 100644 --- a/structure/client/components/settings/moderation/ModerationLog.js +++ b/structure/client/components/settings/moderation/ModerationLog.js @@ -40,7 +40,8 @@ class ModerationLogsSetting extends Setting { const result = await this.client.resolver.list( setting.infractions, Object.keys(InfractionResolves), - params, this.client.resolver.resolveInfractions.bind(this.client.resolver) + params, + this.client.resolver.resolveInfractions.bind(this.client.resolver) ); if(result) { diff --git a/structure/interfaces/FilterSetting.js b/structure/interfaces/FilterSetting.js index f807e89..e5a4e5c 100644 --- a/structure/interfaces/FilterSetting.js +++ b/structure/interfaces/FilterSetting.js @@ -117,7 +117,7 @@ module.exports = class FilterSetting extends Setting { } } - //Which words should trigger the action? + //What should trigger the action? //Implemented in the subclass const result = await this._createTrigger(message, action, actionObject, setting); if (result && result.error) return result;