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

View File

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