|
@@ -1170,9 +1170,15 @@ func nsPasswdHandler(service *ircService, server *Server, client *Client, comman
|
1170
|
1170
|
if newPassword == "*" {
|
1171
|
1171
|
newPassword = ""
|
1172
|
1172
|
}
|
|
1173
|
+
|
|
1174
|
+ checkPassword := params[2]
|
|
1175
|
+ if checkPassword == "*" {
|
|
1176
|
+ checkPassword = "" // #1883
|
|
1177
|
+ }
|
|
1178
|
+
|
1173
|
1179
|
if target == "" {
|
1174
|
1180
|
errorMessage = `You're not logged into an account`
|
1175
|
|
- } else if newPassword != params[2] {
|
|
1181
|
+ } else if newPassword != checkPassword {
|
1176
|
1182
|
errorMessage = `Passwords do not match`
|
1177
|
1183
|
} else {
|
1178
|
1184
|
if !nsLoginThrottleCheck(service, client, rb) {
|