mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
Update based on review comments from Synapse PR.
This commit is contained in:
parent
95bb5a7e83
commit
a6d483191e
@ -115,7 +115,7 @@ class AntiSpam(object):
|
||||
def user_may_publish_room(self, user_id, room_id):
|
||||
return True # allowed
|
||||
|
||||
def check_for_banned_user(self, user_id, display_name):
|
||||
def check_username_for_spam(self, user_id, display_name):
|
||||
# Check whether the user ID or display name matches any of the banned
|
||||
# patterns.
|
||||
return self.is_user_banned(user_id) or self.is_user_banned(display_name)
|
||||
|
Loading…
Reference in New Issue
Block a user