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

relay: also propagate AWAY status when spawning users

This commit is contained in:
James Lu 2015-08-12 04:40:49 -07:00
parent 486b56e255
commit 3ee10a5d1e

View File

@ -143,6 +143,9 @@ def getRemoteUser(irc, remoteirc, user, spawnIfMissing=True):
host=host, realname=realname,
modes=modes, ts=userobj.ts).uid
remoteirc.users[u].remote = irc.name
away = userobj.away
if away:
remoteirc.proto.awayClient(remoteirc, u, away)
relayusers[(irc.name, user)][remoteirc.name] = u
return u