autojoin: fix authorize condition
This commit is contained in:
parent
518f30d835
commit
a8c2bc4c8b
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ pub async fn autojoin_authorized_rooms(
|
||||||
room_id, room_name
|
room_id, room_name
|
||||||
);
|
);
|
||||||
|
|
||||||
if authorized_rooms.contains(room_id) {
|
if !authorized_rooms.contains(room_id) {
|
||||||
warn!(
|
warn!(
|
||||||
"Bot isn't authorized to join room `{}`, declining invitation",
|
"Bot isn't authorized to join room `{}`, declining invitation",
|
||||||
room_id
|
room_id
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue