mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 09:19:23 +01:00
relay: prevent RuntimeError on handle_quit
This commit is contained in:
parent
880b59c2c1
commit
58e84a654c
@ -268,7 +268,7 @@ utils.add_hook(handle_join, 'JOIN')
|
|||||||
|
|
||||||
def handle_quit(irc, numeric, command, args):
|
def handle_quit(irc, numeric, command, args):
|
||||||
ouruser = numeric
|
ouruser = numeric
|
||||||
for netname, user in relayusers[(irc.name, numeric)].items():
|
for netname, user in relayusers[(irc.name, numeric)].copy().items():
|
||||||
remoteirc = utils.networkobjects[netname]
|
remoteirc = utils.networkobjects[netname]
|
||||||
remoteirc.proto.quitClient(remoteirc, user, args['text'])
|
remoteirc.proto.quitClient(remoteirc, user, args['text'])
|
||||||
del relayusers[(irc.name, ouruser)]
|
del relayusers[(irc.name, ouruser)]
|
||||||
|
Loading…
Reference in New Issue
Block a user