Update password on NickServ SET PASSWORD message

This commit is contained in:
Simon Ser 2020-03-28 10:40:33 +01:00
parent 53d4f9f71b
commit 5a8adc93fe
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -1367,10 +1367,16 @@ func parseNickServCredentials(text, nick string) (username, password string, ok
case "IDENTIFY":
if len(params) == 1 {
username = nick
password = params[0]
} else {
username = params[0]
}
password = params[1]
}
case "SET":
if len(params) == 2 && strings.EqualFold(params[0], "PASSWORD") {
username = nick
password = params[1]
}
}
return username, password, true
}