From ea455436c1134c388b168223c5515c5bcf3a9a24 Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 30 Jun 2017 00:41:10 -0700 Subject: [PATCH] control: fix REHASH for 2.x protocol modules --- coremods/control.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/coremods/control.py b/coremods/control.py index 3d273ce..8e2c778 100644 --- a/coremods/control.py +++ b/coremods/control.py @@ -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':