upstream: don't print "unhandled message" for registration errors

This commit is contained in:
Simon Ser 2023-04-03 22:35:38 +02:00
parent b514306a06
commit 5358d93ab9

View File

@ -1827,7 +1827,7 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err
if !uc.registered {
return registrationError{msg}
}
fallthrough
uc.forwardMsgByID(downstreamID, msg)
default:
uc.logger.Printf("unhandled message: %v", msg)
uc.forwardMsgByID(downstreamID, msg)