3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +01:00

control: fix REHASH for 2.x protocol modules

This commit is contained in:
James Lu 2017-06-30 00:41:10 -07:00
parent 0c7fb861f1
commit ea455436c1

View File

@ -130,7 +130,11 @@ def _rehash():
# Connect any new networks or disconnected networks if they aren't already.
if (network not in world.networkobjects) or (not world.networkobjects[network].connection_thread.is_alive()):
proto = utils.getProtocolModule(sdata['protocol'])
world.networkobjects[network] = classes.Irc(network, proto, new_conf)
# API note: 2.0.x style of starting network connections
world.networkobjects[network] = newirc = proto.Class(network)
newirc.connect()
log.info('Finished reloading PyLink configuration.')
if os.name == 'posix':