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 21a65f8cf4
commit 9248e61e86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;