From 57eb54fb34e0a8cd6ddc358225645725a563d991 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 4 Apr 2022 09:55:32 +0200 Subject: [PATCH] upstream: use labeled-response for queued commands --- upstream.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upstream.go b/upstream.go index 320e79b..93f4c8e 100644 --- a/upstream.go +++ b/upstream.go @@ -344,7 +344,8 @@ func (uc *upstreamConn) sendNextPendingCommand(cmd string) { if len(uc.pendingCmds[cmd]) == 0 { return } - uc.SendMessage(context.TODO(), uc.pendingCmds[cmd][0].msg) + pendingCmd := uc.pendingCmds[cmd][0] + uc.SendMessageLabeled(context.TODO(), pendingCmd.downstreamID, pendingCmd.msg) } func (uc *upstreamConn) enqueueCommand(dc *downstreamConn, msg *irc.Message) {