From fe03c9a45ed1b2a36dcfff98fbb97f5ba6fac3c8 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Wed, 10 Aug 2016 18:40:37 +0200 Subject: Core/Accounts: Reduce differences between 3.3.5 and 6.x branches Add code missing from d8234bed420728aaa2e0f329778730a906f7dd12 --- src/server/game/Accounts/AccountMgr.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/server/game/Accounts/AccountMgr.cpp b/src/server/game/Accounts/AccountMgr.cpp index b8a23c838c4..dceb8afbb1e 100644 --- a/src/server/game/Accounts/AccountMgr.cpp +++ b/src/server/game/Accounts/AccountMgr.cpp @@ -254,7 +254,10 @@ AccountOpResult AccountMgr::ChangeRegEmail(uint32 accountId, std::string newEmai std::string username; if (!GetName(accountId, username)) + { + sScriptMgr->OnFailedEmailChange(accountId); return AccountOpResult::AOR_NAME_NOT_EXIST; // account doesn't exist + } if (utf8length(newEmail) > MAX_EMAIL_STR) { -- cgit v1.2.3