3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +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 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( const maxEmoji = this.configValueForMemberIdAndChannelId(
savedMessage.user_id, savedMessage.user_id,
savedMessage.channel_id, savedMessage.channel_id,
"max_emoji" "max_emojis"
); );
if (maxEmoji && savedMessage.data.content) { if (maxEmoji && savedMessage.data.content) {
const emojiCount = getEmojiInString(savedMessage.data.content).length; const emojiCount = getEmojiInString(savedMessage.data.content).length;