mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
parent
26ae55cd24
commit
2c9fc0ccdc
@ -121,7 +121,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.
|
||||
|
Loading…
Reference in New Issue
Block a user