mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-23 11:12:44 +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"))
|
||||
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"))
|
||||
|
Loading…
Reference in New Issue
Block a user