Fix boolean in statement
This commit is contained in:
parent
a19e124cdf
commit
2c16ca5062
2
bot.py
2
bot.py
|
@ -474,7 +474,7 @@ class Bot:
|
||||||
room: MatrixRoom
|
room: MatrixRoom
|
||||||
event: InviteEvent
|
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!')
|
self.logger.error(f'Cannot join room {room.display_name}, as {event.sender} is not whitelisted for invites!')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue