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:
parent
b3ec8a6790
commit
ae56ed6a32
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user