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

service_support: allow server:service_channels for per service autojoin

This commit is contained in:
Ken Spencer 2017-02-26 21:05:33 -05:00
parent 5fe277f90d
commit b3ec8a6790

View File

@ -64,7 +64,7 @@ def spawn_service(irc, source, command, args):
# TODO: channels should be tracked in a central database, not hardcoded
# in conf.
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')