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

relay: fix users being cloned on every JOIN

This commit is contained in:
James Lu 2015-07-12 23:31:26 -07:00
parent 6b9ec694b7
commit b3206822d2

View File

@ -118,7 +118,7 @@ def handle_join(irc, numeric, command, args):
# again! # again!
u = None u = None
if userpair_index is not None: if userpair_index is not None:
u = userpair_index.get(irc.name) u = userpair_index.get(remoteirc.name)
if u is None: # .get() returns None if not found if u is None: # .get() returns None if not found
u = remoteirc.proto.spawnClient(remoteirc, nick, ident=ident, u = remoteirc.proto.spawnClient(remoteirc, nick, ident=ident,
host=host, realname=realname).uid host=host, realname=realname).uid