mirror of
https://gitlab.com/gpvkt/twitchtts.git
synced 2025-04-09 05:12:28 +02:00
Bugfix: Check if user is on allowed list before removing him
This commit is contained in:
parent
4ef62c2dc8
commit
826093ac18
1 changed files with 2 additions and 0 deletions
2
tts.py
2
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'):
|
||||
|
|
Loading…
Add table
Reference in a new issue