mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-09 00:02:15 -04:00
Update comments
This commit is contained in:
parent
f2da6df568
commit
e4ab96021e
2 changed files with 8 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue