mirror of https://gitlab.com/gpvkt/twitchtts.git
Bugfix: Check if user is on allowed list before removing him
This commit is contained in:
parent
9e6691779e
commit
7a4a134990
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…
Reference in New Issue