3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-17 15:15:02 +00:00

spam: fix an instance of max_emoji -> max_emojis

This commit is contained in:
Miikka 2019-01-09 10:36:49 +02:00 committed by GitHub
parent 9104e32332
commit d44cea3d74

View file

@ -354,7 +354,7 @@ export class SpamPlugin extends Plugin {
const maxEmoji = this.configValueForMemberIdAndChannelId(
savedMessage.user_id,
savedMessage.channel_id,
"max_emoji"
"max_emojis"
);
if (maxEmoji && savedMessage.data.content) {
const emojiCount = getEmojiInString(savedMessage.data.content).length;