mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Cleanup
This commit is contained in:
parent
cabccf5bd3
commit
cdd977c131
1 changed files with 3 additions and 3 deletions
|
@ -441,10 +441,10 @@ export class SpamPlugin extends ZeppelinPlugin<ISpamPluginConfig> {
|
|||
);
|
||||
}
|
||||
|
||||
const maxEmoji = config.max_emojis;
|
||||
if (maxEmoji && savedMessage.data.content) {
|
||||
const maxEmojis = config.max_emojis;
|
||||
if (maxEmojis && savedMessage.data.content) {
|
||||
const emojiCount = getEmojiInString(savedMessage.data.content).length;
|
||||
this.logAndDetectMessageSpam(savedMessage, RecentActionType.Emoji, maxEmoji, emojiCount, "too many emoji");
|
||||
this.logAndDetectMessageSpam(savedMessage, RecentActionType.Emoji, maxEmojis, emojiCount, "too many emoji");
|
||||
}
|
||||
|
||||
const maxNewlines = config.max_newlines;
|
||||
|
|
Loading…
Add table
Reference in a new issue