Update comments

This commit is contained in:
Erik Johnston 2017-10-03 14:10:21 +01:00
parent f2da6df568
commit e4ab96021e
2 changed files with 8 additions and 1 deletions

View file

@ -536,6 +536,13 @@ class RoomMemberStore(SQLBaseStore):
@cachedInlineCallbacks()
def was_host_joined(self, room_id, host):
"""Check whether the server is or ever was in the room.
Args:
room_id (str)
host (str)
Returns:
bool: whether the host is/was in the room or not
"""
if '%' in host or '_' in host:
raise Exception("Invalid host name")