From defbe1b3105d42685f3569255c36be71364faf4b Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sun, 10 Jul 2022 11:45:22 +0300 Subject: [PATCH] bugfixes --- src/structure/components/settings/logging/Moderation.js | 2 +- src/structure/interfaces/Infraction.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structure/components/settings/logging/Moderation.js b/src/structure/components/settings/logging/Moderation.js index 9a5268d..87731d6 100644 --- a/src/structure/components/settings/logging/Moderation.js +++ b/src/structure/components/settings/logging/Moderation.js @@ -105,7 +105,7 @@ class ModerationLog extends Setting { } } - return { index }; + return { index, params: langParams }; } diff --git a/src/structure/interfaces/Infraction.js b/src/structure/interfaces/Infraction.js index 143570b..cd17930 100644 --- a/src/structure/interfaces/Infraction.js +++ b/src/structure/interfaces/Infraction.js @@ -107,7 +107,7 @@ class Infraction { } if (dminfraction.enabled && !this.silent) { - if (this.targetType === 'USER') { + if (this.targetType === 'USER' && dminfraction.infractions.includes(this.type)) { let message = dminfraction.messages[this.type] || dminfraction.messages.default; if (!message) message = ''; message = message