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

relay: only call initializeAll on ENDBURST for the uplink

This prevents unnecessary bursts being sent every time a server is introduced on any network.
This commit is contained in:
James Lu 2015-08-04 05:13:44 -07:00
parent 3f98af6f96
commit f61ecf6d68

View File

@ -889,7 +889,8 @@ def main():
thread.start()
def handle_endburst(irc, numeric, command, args):
initializeAll(irc)
if numeric == irc.uplink:
initializeAll(irc)
utils.add_hook(handle_endburst, "ENDBURST")
def handle_disconnect(irc, numeric, command, args):