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

relay: Home network lost connection. => Relay network lost connection.

This commit is contained in:
James Lu 2015-10-23 18:50:42 -07:00
parent b3ab604b88
commit 2bf9568fbb

View File

@ -1011,7 +1011,7 @@ def handle_disconnect(irc, numeric, command, args):
del relayusers[k][irc.name] del relayusers[k][irc.name]
if k[0] == irc.name: if k[0] == irc.name:
try: try:
handle_quit(irc, k[1], 'PYLINK_DISCONNECT', {'text': 'Home network lost connection.'}) handle_quit(irc, k[1], 'PYLINK_DISCONNECT', {'text': 'Relay network lost connection.'})
del relayusers[k] del relayusers[k]
except KeyError: except KeyError:
pass pass
@ -1024,7 +1024,7 @@ def handle_disconnect(irc, numeric, command, args):
except KeyError: except KeyError:
continue continue
else: else:
ircobj.proto.squitServer(ircobj.sid, rsid, text='Home network lost connection.') ircobj.proto.squitServer(ircobj.sid, rsid, text='Relay network lost connection.')
del relayservers[name][irc.name] del relayservers[name][irc.name]
try: try:
del relayservers[irc.name] del relayservers[irc.name]