From 7a4a1349900970ba81b57914780f0e8581b29f81 Mon Sep 17 00:00:00 2001 From: gpkvt Date: Thu, 11 Aug 2022 00:43:09 +0200 Subject: [PATCH] Bugfix: Check if user is on allowed list before removing him --- tts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tts.py b/tts.py index 775264f..347243a 100644 --- a/tts.py +++ b/tts.py @@ -128,6 +128,8 @@ class IRC: if user not in self.tts_denied: logging.info("Adding "+str(user)+" to deny list") self.tts_denied.append(user) + if user in self.tts_allowed: + logging.info("Removing "+str(user)+" from allowed list") self.tts_allowed.remove(user) if msg.startswith('!ptts'):