Selaa lähdekoodia

Merge branch 'issue1883'

tags/v2.9.0-rc1
Shivaram Lingamneni 2 vuotta sitten
vanhempi
commit
e112a78b9b
1 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  1. 7
    1
      irc/nickserv.go

+ 7
- 1
irc/nickserv.go Näytä tiedosto

@@ -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) {

Loading…
Peruuta
Tallenna