mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-30 23:09:23 +01:00
relay: don't send SQUIT for relay servers to networks that aren't connected
This commit is contained in:
parent
e28c351792
commit
bde2f66b2a
@ -1013,7 +1013,7 @@ def handle_disconnect(irc, numeric, command, args):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
for name, ircobj in world.networkobjects.copy().items():
|
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)
|
rsid = getRemoteSid(ircobj, irc)
|
||||||
# Let's be super extra careful here...
|
# Let's be super extra careful here...
|
||||||
if rsid and name in relayservers and irc.name in relayservers[name]:
|
if rsid and name in relayservers and irc.name in relayservers[name]:
|
||||||
|
Loading…
Reference in New Issue
Block a user