mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-22 11:59:40 +01:00
Merge branch 'issue1883'
This commit is contained in:
commit
e112a78b9b
@ -1170,9 +1170,15 @@ func nsPasswdHandler(service *ircService, server *Server, client *Client, comman
|
|||||||
if newPassword == "*" {
|
if newPassword == "*" {
|
||||||
newPassword = ""
|
newPassword = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
checkPassword := params[2]
|
||||||
|
if checkPassword == "*" {
|
||||||
|
checkPassword = "" // #1883
|
||||||
|
}
|
||||||
|
|
||||||
if target == "" {
|
if target == "" {
|
||||||
errorMessage = `You're not logged into an account`
|
errorMessage = `You're not logged into an account`
|
||||||
} else if newPassword != params[2] {
|
} else if newPassword != checkPassword {
|
||||||
errorMessage = `Passwords do not match`
|
errorMessage = `Passwords do not match`
|
||||||
} else {
|
} else {
|
||||||
if !nsLoginThrottleCheck(service, client, rb) {
|
if !nsLoginThrottleCheck(service, client, rb) {
|
||||||
|
Loading…
Reference in New Issue
Block a user