Fixed: Error in whitelist handling

This commit is contained in:
gpkvt 2022-10-28 19:19:32 +02:00
parent 10fb75e19a
commit c7a2225eb2
2 changed files with 3 additions and 3 deletions

BIN
tts.exe

Binary file not shown.

6
tts.py
View File

@ -74,7 +74,7 @@ class IRC:
} }
if 'WHITELIST_USER' in CONF: if 'WHITELIST_USER' in CONF:
self.tts_allowed = CONF['WHITELIST_USER'] self.tts['whitelist'] = CONF['WHITELIST_USER']
def connect(self, server, port, channel, botnick, botpass): def connect(self, server, port, channel, botnick, botpass):
""" Connect to Twitch IRC servers """ Connect to Twitch IRC servers
@ -498,8 +498,8 @@ class IRC:
""" """
if CONF['WHITELIST']: if CONF['WHITELIST']:
if user not in self.tts_allowed: if user not in self.tts['whitelist']:
logging.debug("tts_allowed: %s", self.tts_allowed) logging.debug("tts.whitelist: %s", self.tts['whitelist'])
self.sendmsg( self.sendmsg(
CONF['IRC_CHANNEL'], CONF['IRC_CHANNEL'],
"@"+str(user), "@"+str(user),