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
4ef62c2dc8
commit
826093ac18
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