autojoin: fix authorize condition

This commit is contained in:
Antoine Martin 2021-09-11 20:20:49 +02:00
parent 518f30d835
commit a8c2bc4c8b

View file

@ -32,7 +32,7 @@ pub async fn autojoin_authorized_rooms(
room_id, room_name
);
if authorized_rooms.contains(room_id) {
if !authorized_rooms.contains(room_id) {
warn!(
"Bot isn't authorized to join room `{}`, declining invitation",
room_id