From 207f5b3b9551c325bb0155adef26b03387413177 Mon Sep 17 00:00:00 2001 From: Dragory Date: Sun, 17 Feb 2019 17:23:10 +0200 Subject: [PATCH] Spam: max_voice_move -> max_voice_moves, add to default mod override as well --- src/plugins/Spam.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/Spam.ts b/src/plugins/Spam.ts index e69dc3a1..af2feffc 100644 --- a/src/plugins/Spam.ts +++ b/src/plugins/Spam.ts @@ -79,6 +79,7 @@ export class SpamPlugin extends Plugin { max_newlines: null, max_duplicates: null, max_characters: null, + max_voice_moves: null, }, // Default override to make mods immune to the spam filter @@ -94,6 +95,7 @@ export class SpamPlugin extends Plugin { max_newlines: null, max_duplicates: null, max_characters: null, + max_voice_moves: null, }, }, ], @@ -471,7 +473,7 @@ export class SpamPlugin extends Plugin { @d.event("voiceChannelJoin") @d.event("voiceChannelSwitch") onVoiceChannelSwitch(member: Member, channel: Channel) { - const spamConfig = this.configValueForMemberIdAndChannelId(member.id, channel.id, "max_voice_move"); + const spamConfig = this.configValueForMemberIdAndChannelId(member.id, channel.id, "max_voice_moves"); if (spamConfig) { this.logAndDetectOtherSpam( RecentActionType.VoiceChannelMove,