Core/Accounts: Reduce differences between 3.3.5 and 6.x branches

Add code missing from d8234bed42
This commit is contained in:
jackpoz
2016-08-10 18:40:37 +02:00
parent 6147ba6156
commit fe03c9a45e

View File

@@ -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)
{