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
1 changed files with 1 additions and 3 deletions

View File

@ -1423,7 +1423,7 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err
if firstTopicWhoTime && (c == nil || !c.Detached) {
uc.forwardMessage(ctx, msg)
}
case irc.RPL_LIST:
case irc.RPL_LISTSTART, irc.RPL_LIST:
dc, cmd := uc.currentPendingCommand("LIST")
if cmd == nil {
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)
case irc.RPL_LISTSTART:
// Ignore
case "ERROR":
var text string
if err := parseMessageParams(msg, &text); err != nil {