This commit is contained in:
Erik 2022-07-10 11:45:22 +03:00
parent 189a04cc25
commit defbe1b310
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ class ModerationLog extends Setting {
} }
} }
return { index }; return { index, params: langParams };
} }

View File

@ -107,7 +107,7 @@ class Infraction {
} }
if (dminfraction.enabled && !this.silent) { 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; let message = dminfraction.messages[this.type] || dminfraction.messages.default;
if (!message) message = ''; if (!message) message = '';
message = message message = message