Fix joining rooms with passwords
This commit is contained in:
parent
aee21f359c
commit
0881d25103
1 changed files with 2 additions and 3 deletions
|
|
@ -204,9 +204,8 @@ class Room:
|
|||
logger.info(f"&{self.roomname}:Received bounce-event")
|
||||
if self.password is not None:
|
||||
try:
|
||||
data = {"type": passcode, "passcode": self.password}
|
||||
response = await self._connection.send("auth", data=data)
|
||||
rdata = response.get("data")
|
||||
data = {"type": "passcode", "passcode": self.password}
|
||||
ptype, rdata, error, throttled = await self._connection.send("auth", data=data)
|
||||
success = rdata.get("success")
|
||||
if not success:
|
||||
reason = rdata.get("reason")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue