From b5c9c3874f7ebe859209a9beaff5be41508ba5f2 Mon Sep 17 00:00:00 2001 From: F-Node-Karlsruhe Date: Sun, 20 Nov 2022 12:57:42 +0100 Subject: [PATCH] actually add the variable to the statement --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index f787167..f8a0025 100755 --- a/bot.py +++ b/bot.py @@ -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