Changeset 753 in code for trunk/downstream.go
- Timestamp:
- Dec 7, 2021, 8:40:02 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/downstream.go
r751 r753 1237 1237 dc.password = "" 1238 1238 if dc.user == nil { 1239 if password == "" { 1240 if dc.caps["sasl"] { 1241 return ircError{&irc.Message{ 1242 Command: "FAIL", 1243 Params: []string{"*", "ACCOUNT_REQUIRED", "Authentication required"}, 1244 }} 1245 } else { 1246 return ircError{&irc.Message{ 1247 Command: irc.ERR_PASSWDMISMATCH, 1248 Params: []string{dc.nick, "Authentication required"}, 1249 }} 1250 } 1251 } 1252 1239 1253 if err := dc.authenticate(ctx, dc.rawUsername, password); err != nil { 1240 1254 dc.logger.Printf("PASS authentication error for user %q: %v", dc.rawUsername, err) 1241 1255 return ircError{&irc.Message{ 1242 1256 Command: irc.ERR_PASSWDMISMATCH, 1243 Params: []string{ "*", authErrorReason(err)},1257 Params: []string{dc.nick, authErrorReason(err)}, 1244 1258 }} 1245 1259 }
Note:
See TracChangeset
for help on using the changeset viewer.