From 8a9f1044fe6aaef8a5b2271f6fec64d243b8e9bb Mon Sep 17 00:00:00 2001 From: William Kray Date: Thu, 10 Oct 2024 07:42:41 -0700 Subject: [PATCH] double-check banlist before greeting --- community/bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/community/bot.py b/community/bot.py index 188d0dc..a273682 100644 --- a/community/bot.py +++ b/community/bot.py @@ -242,6 +242,9 @@ class CommunityBot(Plugin): # greeting activities room_id = str(evt.room_id) if room_id in self.config["greeting_rooms"]: + # just in case we got here even if the person is on the banlists + if on_banlist: + return greeting_map = self.config['greetings'] greeting_name = self.config['greeting_rooms'][room_id] nick = self.client.parse_user_id(evt.sender)[0]