diff options
author | Shauren <shauren.trinity@gmail.com> | 2016-09-26 17:43:33 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2016-09-26 17:43:33 +0200 |
commit | 660aa059ae9d537b54e043447d62afc7495e7b06 (patch) | |
tree | 105777d0f67874a56d2c52918c5e39ca45014b54 /src/server/game/Accounts/BattlenetAccountMgr.cpp | |
parent | e22c800edd1100582238b4c505c0d2a262c0b8c7 (diff) |
Core/Commands: Slightly improve output of bnetaccount create command
Ref #18002
Diffstat (limited to 'src/server/game/Accounts/BattlenetAccountMgr.cpp')
-rw-r--r-- | src/server/game/Accounts/BattlenetAccountMgr.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/server/game/Accounts/BattlenetAccountMgr.cpp b/src/server/game/Accounts/BattlenetAccountMgr.cpp index aa388c8ff28..c4ce8b674ac 100644 --- a/src/server/game/Accounts/BattlenetAccountMgr.cpp +++ b/src/server/game/Accounts/BattlenetAccountMgr.cpp @@ -23,7 +23,7 @@ using GameAccountMgr = AccountMgr; -AccountOpResult Battlenet::AccountMgr::CreateBattlenetAccount(std::string email, std::string password, bool withGameAccount /*= true*/) +AccountOpResult Battlenet::AccountMgr::CreateBattlenetAccount(std::string email, std::string password, bool withGameAccount, std::string* gameAccountName) { if (utf8length(email) > MAX_BNET_EMAIL_STR) return AccountOpResult::AOR_NAME_TOO_LONG; @@ -46,7 +46,10 @@ AccountOpResult Battlenet::AccountMgr::CreateBattlenetAccount(std::string email, ASSERT(newAccountId); if (withGameAccount) - GameAccountMgr::instance()->CreateAccount(std::to_string(newAccountId) + "#1", password, email, newAccountId, 1); + { + *gameAccountName = std::to_string(newAccountId) + "#1"; + GameAccountMgr::instance()->CreateAccount(*gameAccountName, password, email, newAccountId, 1); + } return AccountOpResult::AOR_OK; } |