upstream: use labeled-response for queued commands

This commit is contained in:
Simon Ser 2022-04-04 09:55:32 +02:00
parent 9f002d0409
commit 57eb54fb34

View File

@ -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) {