downstream: rename downstreamRegistration.password to pass
This is more descriptive.
This commit is contained in:
parent
f6043e5b98
commit
92796248d2
@ -303,7 +303,7 @@ type downstreamSASL struct {
|
|||||||
type downstreamRegistration struct {
|
type downstreamRegistration struct {
|
||||||
nick string
|
nick string
|
||||||
username string
|
username string
|
||||||
password string // from PASS
|
pass string
|
||||||
|
|
||||||
networkName string
|
networkName string
|
||||||
networkID int64
|
networkID int64
|
||||||
@ -640,7 +640,7 @@ func (dc *downstreamConn) handleMessageUnregistered(ctx context.Context, msg *ir
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
case "PASS":
|
case "PASS":
|
||||||
if err := parseMessageParams(msg, &dc.registration.password); err != nil {
|
if err := parseMessageParams(msg, &dc.registration.pass); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
case "CAP":
|
case "CAP":
|
||||||
@ -1266,8 +1266,8 @@ func (dc *downstreamConn) register(ctx context.Context) error {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
password := dc.registration.password
|
password := dc.registration.pass
|
||||||
dc.registration.password = ""
|
dc.registration.pass = ""
|
||||||
if dc.registration.authUsername == "" {
|
if dc.registration.authUsername == "" {
|
||||||
if password == "" {
|
if password == "" {
|
||||||
if dc.caps.IsEnabled("sasl") {
|
if dc.caps.IsEnabled("sasl") {
|
||||||
|
Loading…
Reference in New Issue
Block a user