mirror of https://gitlab.com/gpvkt/twitchtts.git
Fixed: Error in whitelist handling
This commit is contained in:
parent
10fb75e19a
commit
c7a2225eb2
6
tts.py
6
tts.py
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue