Don't drop RPL_LISTSTART - passthrough to downstream

This commit is contained in:
Eric Mertens 2023-08-13 10:20:38 -07:00 committed by Simon Ser
parent e43e472c53
commit d9db48d879

View File

@ -1423,7 +1423,7 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err
if firstTopicWhoTime && (c == nil || !c.Detached) { if firstTopicWhoTime && (c == nil || !c.Detached) {
uc.forwardMessage(ctx, msg) uc.forwardMessage(ctx, msg)
} }
case irc.RPL_LIST: case irc.RPL_LISTSTART, irc.RPL_LIST:
dc, cmd := uc.currentPendingCommand("LIST") dc, cmd := uc.currentPendingCommand("LIST")
if cmd == nil { if cmd == nil {
return fmt.Errorf("unexpected RPL_LIST: no matching pending LIST") return fmt.Errorf("unexpected RPL_LIST: no matching pending LIST")
@ -1763,8 +1763,6 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err
} }
uc.forwardMsgByID(ctx, downstreamID, msg) uc.forwardMsgByID(ctx, downstreamID, msg)
case irc.RPL_LISTSTART:
// Ignore
case "ERROR": case "ERROR":
var text string var text string
if err := parseMessageParams(msg, &text); err != nil { if err := parseMessageParams(msg, &text); err != nil {