From a8c2bc4c8bcc6f8764d109677be8c1cd7cbc6c44 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 11 Sep 2021 20:20:49 +0200 Subject: [PATCH] autojoin: fix authorize condition --- src/bot/handlers/autojoin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot/handlers/autojoin.rs b/src/bot/handlers/autojoin.rs index 00bd326..2afeb70 100644 --- a/src/bot/handlers/autojoin.rs +++ b/src/bot/handlers/autojoin.rs @@ -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