From 6fe0d7abe0075a64ef544ab5aa6d87d676a4c9bb Mon Sep 17 00:00:00 2001 From: Finn Bear Date: Tue, 23 Mar 2021 15:32:35 -0700 Subject: [PATCH] Bugfix with spam severities. --- moderation.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moderation.go b/moderation.go index d58188d..6056b84 100644 --- a/moderation.go +++ b/moderation.go @@ -233,9 +233,9 @@ func Scan(text string) (types Type) { // TODO: Define severe spam if spamPercent > 50 { - types |= Spam & Moderate + types |= 0b010 << (4 * 3) // moderate spam } else if spamPercent > 30 { - types |= Spam & Mild + types |= 0b001 << (4 * 3) // mild spam } }