Update based on review comments from Synapse PR.

This commit is contained in:
Patrick Cloke 2020-02-12 12:57:34 -05:00
parent 95bb5a7e83
commit a6d483191e

View File

@ -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)