mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-23 19:22:41 +01:00
fix #1738
Fix error message for privileged NS PASSWD on a nonexistent account
This commit is contained in:
parent
dcfd8d8fe8
commit
1c89f996bc
@ -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"))
|
service.Notice(rb, client.t("Your account credentials are managed externally and cannot be changed here"))
|
||||||
case errCASFailed:
|
case errCASFailed:
|
||||||
service.Notice(rb, client.t("Try again later"))
|
service.Notice(rb, client.t("Try again later"))
|
||||||
|
case errAccountDoesNotExist:
|
||||||
|
service.Notice(rb, client.t("Account does not exist"))
|
||||||
default:
|
default:
|
||||||
server.logger.Error("internal", "could not upgrade user password:", err.Error())
|
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"))
|
service.Notice(rb, client.t("Password could not be changed due to server error"))
|
||||||
|
Loading…
Reference in New Issue
Block a user