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

relay: don't send SQUIT for relay servers to networks that aren't connected

This commit is contained in:
James Lu 2015-10-10 15:27:57 -07:00
parent e28c351792
commit bde2f66b2a

View File

@ -1013,7 +1013,7 @@ def handle_disconnect(irc, numeric, command, args):
except KeyError:
pass
for name, ircobj in world.networkobjects.copy().items():
if name != irc.name:
if name != irc.name and ircobj.connected.is_set():
rsid = getRemoteSid(ircobj, irc)
# Let's be super extra careful here...
if rsid and name in relayservers and irc.name in relayservers[name]: