Don't use forEachDownstreamByID when forwarding RPL_AWAY

We should broadcast the message, not send it to a specific downstream
connection.
This commit is contained in:
Simon Ser 2020-04-29 15:32:22 +02:00
parent 2236142681
commit 70131f5b31
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -1141,7 +1141,7 @@ func (uc *upstreamConn) handleMessage(msg *irc.Message) error {
return err
}
uc.forEachDownstreamByID(downstreamID, func(dc *downstreamConn) {
uc.forEachDownstream(func(dc *downstreamConn) {
dc.SendMessage(&irc.Message{
Prefix: dc.srv.prefix(),
Command: irc.RPL_AWAY,