aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2016-08-10 18:40:37 +0200
committerjackpoz <giacomopoz@gmail.com>2016-08-10 18:40:37 +0200
commitfe03c9a45ed1b2a36dcfff98fbb97f5ba6fac3c8 (patch)
treed32cbe4d8b34c7308b8f0cbbcbd6a769e34d88a2 /src
parent6147ba61568fc389e105bd8a92a0051744542716 (diff)
Core/Accounts: Reduce differences between 3.3.5 and 6.x branches
Add code missing from d8234bed420728aaa2e0f329778730a906f7dd12
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Accounts/AccountMgr.cpp3
1 files changed, 3 insertions, 0 deletions
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)
{