From 854b92222a117106394f1c71f617a7da028a9896 Mon Sep 17 00:00:00 2001 From: Someone Date: Fri, 18 Mar 2022 21:32:47 +0100 Subject: [PATCH] modules/CommandJoinActive.py --- modules/CommandJoinActive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/CommandJoinActive.py b/modules/CommandJoinActive.py index 93df366..172b3af 100644 --- a/modules/CommandJoinActive.py +++ b/modules/CommandJoinActive.py @@ -79,7 +79,7 @@ class CommandJoinActive(AbstractCommand): msg = "" for chan in self.bot.api.get_team_channels(self.TEAM_ID): #check against ban list and get the last 10 posts, if all of them are newer than min_timestamp: join - if not chan["id"] in self.skip_chann_ids and self.channel_index[chan["id"]] > timestamp: + if chan["id"] not in self.channel_index and chan["id"] not in self.skip_chann_ids and self.channel_index[chan["id"]] > timestamp: self.bot.api.add_user_to_channel(chan["id"], data["user_id"]) msg += "\n + ~"+chan["name"] -- 2.43.0