upstream: use forEachDownstreamByID to forward RPL_AWAY
It's a reply to a command. If possible, avoid broadcasting it to all connected clients.
This commit is contained in:
parent
b78d8be490
commit
a02a06de0d
@ -1480,7 +1480,7 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
case irc.RPL_AWAY:
|
case irc.RPL_AWAY:
|
||||||
uc.forEachDownstream(func(dc *downstreamConn) {
|
uc.forEachDownstreamByID(downstreamID, func(dc *downstreamConn) {
|
||||||
dc.SendMessage(msg)
|
dc.SendMessage(msg)
|
||||||
})
|
})
|
||||||
case "AWAY", "ACCOUNT":
|
case "AWAY", "ACCOUNT":
|
||||||
|
Loading…
Reference in New Issue
Block a user