From 92796248d269d24c18a823b68cb7fcf2cc9fe4ac Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 5 Apr 2023 20:30:34 +0200 Subject: [PATCH] downstream: rename downstreamRegistration.password to pass This is more descriptive. --- downstream.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/downstream.go b/downstream.go index 7c0a690..e6ac94d 100644 --- a/downstream.go +++ b/downstream.go @@ -303,7 +303,7 @@ type downstreamSASL struct { type downstreamRegistration struct { nick string username string - password string // from PASS + pass string networkName string networkID int64 @@ -640,7 +640,7 @@ func (dc *downstreamConn) handleMessageUnregistered(ctx context.Context, msg *ir return err } case "PASS": - if err := parseMessageParams(msg, &dc.registration.password); err != nil { + if err := parseMessageParams(msg, &dc.registration.pass); err != nil { return err } case "CAP": @@ -1266,8 +1266,8 @@ func (dc *downstreamConn) register(ctx context.Context) error { }) } - password := dc.registration.password - dc.registration.password = "" + password := dc.registration.pass + dc.registration.pass = "" if dc.registration.authUsername == "" { if password == "" { if dc.caps.IsEnabled("sasl") {