3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

services_support: fix service-specific key name

This commit is contained in:
James Lu 2017-02-26 18:11:20 -08:00 committed by GitHub
parent b3ec8a6790
commit ae56ed6a32

View File

@ -62,9 +62,8 @@ def spawn_service(irc, source, command, args):
log.debug('(%s) irc.pseudoclient set to UID %s', irc.name, u)
irc.pseudoclient = userobj
# TODO: channels should be tracked in a central database, not hardcoded
# in conf.
channels = set(irc.serverdata.get(name+'channels', [])) | set(irc.serverdata.get('channels', [])) | sbot.extra_channels.get(irc.name, set())
channels = set(irc.serverdata.get(name+'_channels', [])) | set(irc.serverdata.get('channels', [])) | \
sbot.extra_channels.get(irc.name, set())
sbot.join(irc, channels)
utils.add_hook(spawn_service, 'PYLINK_NEW_SERVICE')