From 739adf7eb9206ba60571b378caf194f2d2bb68ce Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 4 Jul 2022 17:13:31 +0200 Subject: [PATCH] upstream: handle ERR_UNKNOWNERROR and ERR_NEEDMOREPARAMS for queued commands We need to dequeue the commands when we receive these messages. --- upstream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upstream.go b/upstream.go index 142d43f..f556f47 100644 --- a/upstream.go +++ b/upstream.go @@ -1691,7 +1691,7 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err }) } } - case irc.ERR_UNKNOWNCOMMAND, irc.RPL_TRYAGAIN: + case xirc.ERR_UNKNOWNERROR, irc.ERR_UNKNOWNCOMMAND, irc.ERR_NEEDMOREPARAMS, irc.RPL_TRYAGAIN: var command, reason string if err := parseMessageParams(msg, nil, &command, &reason); err != nil { return err