From 1c89f996bcef8759636c79f84ff7991d29a05adb Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Tue, 6 Jul 2021 13:28:25 -0400 Subject: [PATCH] fix #1738 Fix error message for privileged NS PASSWD on a nonexistent account --- irc/nickserv.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/irc/nickserv.go b/irc/nickserv.go index 364435ff..5ac56217 100644 --- a/irc/nickserv.go +++ b/irc/nickserv.go @@ -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"))