From a02a06de0d02f856c422a697b77f256367de672d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 5 Aug 2022 19:17:33 +0200 Subject: [PATCH] upstream: use forEachDownstreamByID to forward RPL_AWAY It's a reply to a command. If possible, avoid broadcasting it to all connected clients. --- upstream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upstream.go b/upstream.go index 6a3db92..905a702 100644 --- a/upstream.go +++ b/upstream.go @@ -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":