actually add the variable to the statement

This commit is contained in:
F-Node-Karlsruhe 2022-11-20 12:57:42 +01:00
parent 9811e2328f
commit b5c9c3874f
1 changed files with 1 additions and 1 deletions

2
bot.py
View File

@ -464,7 +464,7 @@ class Bot:
room: MatrixRoom
event: InviteEvent
if room.room_id.split(':')[1] != self.matrix_user.split(':')[1]:
if self.homeserver_only and room.room_id.split(':')[1] != self.matrix_user.split(':')[1]:
self.logger.error(f'Cannot join room {room.display_name}, as it is not on the homeserver')
return