From 15e31e629abe31257d02cbe1626d518e30d6652e Mon Sep 17 00:00:00 2001 From: Eric Mertens Date: Wed, 16 Aug 2023 11:26:25 -0700 Subject: [PATCH] ERR_NOSUCHSERVER unqueues WHOIS --- upstream.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/upstream.go b/upstream.go index a743c45..e506c18 100644 --- a/upstream.go +++ b/upstream.go @@ -1696,7 +1696,9 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err uc.forwardMessage(ctx, msg) case irc.RPL_BANLIST, irc.RPL_INVITELIST, irc.RPL_EXCEPTLIST, irc.RPL_ENDOFBANLIST, irc.RPL_ENDOFINVITELIST, irc.RPL_ENDOFEXCEPTLIST: uc.forwardMsgByID(ctx, downstreamID, msg) - case irc.ERR_NOSUCHNICK: + case irc.ERR_NOSUCHNICK, irc.ERR_NOSUCHSERVER: + // one argument WHOIS variant errors with NOSUCHNICK + // two argument WHOIS variant errors with NOSUCHSERVER var nick, reason string if err := parseMessageParams(msg, nil, &nick, &reason); err != nil { return err