diff --git a/downstream.go b/downstream.go index aa0fc9c..df960ea 100644 --- a/downstream.go +++ b/downstream.go @@ -689,7 +689,7 @@ func (dc *downstreamConn) handleMessageUnregistered(ctx context.Context, msg *ir } if err != nil { - dc.logger.Printf("SASL %v authentication error for nick %q: %v", credentials.mechanism, dc.nick, err) + dc.logger.Printf("SASL %v authentication error for nick %q: %v", credentials.mechanism, dc.registration.nick, err) dc.endSASL(ctx, &irc.Message{ Prefix: dc.srv.prefix(), Command: irc.ERR_SASLFAIL,