diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-05-15 15:46:29 +0700 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-05-15 15:46:29 +0700 |
commit | fefe3fd23caa01fe58cc8705292f67edf80e5270 (patch) | |
tree | a25a2b63bc7fe11bfc641f20ce09c845fee90870 /src/main/kotlin/cc/woverflow/chatting/chat | |
parent | 8ccf84e85e0bb4b4cb79e889037a01cfde1a7525 (diff) | |
download | Chatting-fefe3fd23caa01fe58cc8705292f67edf80e5270.tar.gz Chatting-fefe3fd23caa01fe58cc8705292f67edf80e5270.tar.bz2 Chatting-fefe3fd23caa01fe58cc8705292f67edf80e5270.zip |
Revert "allow to disable the spam blocker"
This reverts commit 8ccf84e85e0bb4b4cb79e889037a01cfde1a7525.
Diffstat (limited to 'src/main/kotlin/cc/woverflow/chatting/chat')
-rw-r--r-- | src/main/kotlin/cc/woverflow/chatting/chat/ChatSpamBlock.kt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/main/kotlin/cc/woverflow/chatting/chat/ChatSpamBlock.kt b/src/main/kotlin/cc/woverflow/chatting/chat/ChatSpamBlock.kt index 7130880..224e614 100644 --- a/src/main/kotlin/cc/woverflow/chatting/chat/ChatSpamBlock.kt +++ b/src/main/kotlin/cc/woverflow/chatting/chat/ChatSpamBlock.kt @@ -25,7 +25,6 @@ object ChatSpamBlock { val tokens = tokenize(content) val spamProb = findSpamProbability(tokens) println("\n[CHATTING]$message") - if (ChattingConfig.spamThreshold == 100) return if (spamProb * 100 > ChattingConfig.spamThreshold) { if (ChattingConfig.showSpamInGray) { var newMessage = EnumChatFormatting.DARK_GRAY.toString() + EnumChatFormatting.STRIKETHROUGH.toString() |