3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-23 11:12:44 +01:00
Fix error message for privileged NS PASSWD on a nonexistent account
This commit is contained in:
Shivaram Lingamneni 2021-07-06 13:28:25 -04:00
parent dcfd8d8fe8
commit 1c89f996bc

View File

@ -1083,6 +1083,8 @@ func nsPasswdHandler(service *ircService, server *Server, client *Client, comman
service.Notice(rb, client.t("Your account credentials are managed externally and cannot be changed here"))
case errCASFailed:
service.Notice(rb, client.t("Try again later"))
case errAccountDoesNotExist:
service.Notice(rb, client.t("Account does not exist"))
default:
server.logger.Error("internal", "could not upgrade user password:", err.Error())
service.Notice(rb, client.t("Password could not be changed due to server error"))