3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 04:02:45 +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: else:
realhost = None realhost = None
ip = '0.0.0.0' ip = '0.0.0.0'
u = remoteirc.proto.spawnClient(nick, ident=ident,
host=host, realname=realname, u = remoteirc.proto.spawnClient(nick, ident=ident, host=host, realname=realname, modes=modes,
modes=modes, ts=userobj.ts, opertype=opertype, server=rsid, ip=ip, realhost=realhost).uid
opertype=opertype, server=rsid,
ip=ip, realhost=realhost).uid
try: try:
remoteirc.users[u].remote = (irc.name, user) remoteirc.users[u].remote = (irc.name, user)
remoteirc.users[u].opertype = opertype remoteirc.users[u].opertype = opertype