diff --git a/synapse_antispam/mjolnir/antispam.py b/synapse_antispam/mjolnir/antispam.py index 5683fd4..f57c173 100644 --- a/synapse_antispam/mjolnir/antispam.py +++ b/synapse_antispam/mjolnir/antispam.py @@ -120,7 +120,9 @@ class AntiSpam(object): def check_username_for_spam(self, user_profile): if not self.block_usernames: - return True # allowed (we aren't blocking based on usernames) + # /!\ NB: unlike other checks, where `True` means allowed, + # here `True` means "this user is a spammer". + return False # allowed (we aren't blocking based on usernames) # Check whether the user ID or display name matches any of the banned # patterns.