mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-09-29 20:56:23 +00: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):
|
def user_may_publish_room(self, user_id, room_id):
|
||||||
return True # allowed
|
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
|
# Check whether the user ID or display name matches any of the banned
|
||||||
# patterns.
|
# patterns.
|
||||||
return self.is_user_banned(user_id) or self.is_user_banned(display_name)
|
return self.is_user_banned(user_id) or self.is_user_banned(display_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user