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:
Simon Ser 2022-08-05 19:17:33 +02:00
parent b78d8be490
commit a02a06de0d

View File

@ -1480,7 +1480,7 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err
}
})
case irc.RPL_AWAY:
uc.forEachDownstream(func(dc *downstreamConn) {
uc.forEachDownstreamByID(downstreamID, func(dc *downstreamConn) {
dc.SendMessage(msg)
})
case "AWAY", "ACCOUNT":