Fix boolean in statement

This commit is contained in:
F-Node-Karlsruhe 2022-11-24 08:32:38 +01:00 committed by GitHub
parent a19e124cdf
commit 2c16ca5062
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
bot.py
View File

@ -474,7 +474,7 @@ class Bot:
room: MatrixRoom
event: InviteEvent
if len(self.invite_whitelist) > 0 and self.on_invite_whitelist(event.sender):
if len(self.invite_whitelist) > 0 and not self.on_invite_whitelist(event.sender):
self.logger.error(f'Cannot join room {room.display_name}, as {event.sender} is not whitelisted for invites!')
return