diff --git a/utils.py b/utils.py index ea2a32076..4c106d2ff 100644 --- a/utils.py +++ b/utils.py @@ -3805,11 +3805,12 @@ def disallow_announce(content: str) -> bool: "don't boost", 'boost_denied', 'boosts_denied', - 'BoostDenied', - 'BoostsDenied' + 'boostdenied', + 'boostsdenied' ) + content_lower = content.lower() for diss in disallow_strings: - if diss in content: + if diss in content_lower: return True return False @@ -3828,10 +3829,12 @@ def disallow_reply(content: str) -> bool: 'do not reply', "don't reply", "don't @ me", - 'DontAtMe' + 'dont@me', + 'dontatme' ) + content_lower = content.lower() for diss in disallow_strings: - if diss in content: + if diss in content_lower: return True return False