From c69ea81999d334ac7949b6a406555d588e17dae8 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 12 Jul 2022 17:03:23 +0200 Subject: [PATCH] downstream: fix downstream check for draft/read-marker `dc` is the source connection, `d` is the destination for the broadcast. Fixes: 7e21e79eaba0 ("downstream: fix MARKREAD/READ command name in broadcast") --- downstream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/downstream.go b/downstream.go index 6feadf0..f728e30 100644 --- a/downstream.go +++ b/downstream.go @@ -3017,7 +3017,7 @@ func (dc *downstreamConn) handleMessageRegistered(ctx context.Context, msg *irc. network.forEachDownstream(func(d *downstreamConn) { if broadcast || dc.id == d.id { cmd := "MARKREAD" - if !dc.caps.IsEnabled("draft/read-marker") { + if !d.caps.IsEnabled("draft/read-marker") { cmd = "READ" } d.SendMessage(&irc.Message{