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

relay: don't create relay clones with the user's original TS

There's no point of doing this. Relay should purposely lose nick collisions anyways because it can simply switch to the next one.
This commit is contained in:
James Lu 2016-07-10 22:25:01 -07:00
parent 84452bec2e
commit 9c2bec7a3d

View File

@ -318,11 +318,9 @@ def spawnRelayUser(irc, remoteirc, user):
else:
realhost = None
ip = '0.0.0.0'
u = remoteirc.proto.spawnClient(nick, ident=ident,
host=host, realname=realname,
modes=modes, ts=userobj.ts,
opertype=opertype, server=rsid,
ip=ip, realhost=realhost).uid
u = remoteirc.proto.spawnClient(nick, ident=ident, host=host, realname=realname, modes=modes,
opertype=opertype, server=rsid, ip=ip, realhost=realhost).uid
try:
remoteirc.users[u].remote = (irc.name, user)
remoteirc.users[u].opertype = opertype