downstream: fix nick in auth error message

We were always printing "*" here.
This commit is contained in:
Simon Ser 2023-05-23 18:28:50 +02:00
parent 9659de8ff3
commit fa33ce986c

View File

@ -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,