aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Commands
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-09-26 17:43:33 +0200
committerShauren <shauren.trinity@gmail.com>2016-09-26 17:43:33 +0200
commit660aa059ae9d537b54e043447d62afc7495e7b06 (patch)
tree105777d0f67874a56d2c52918c5e39ca45014b54 /src/server/scripts/Commands
parente22c800edd1100582238b4c505c0d2a262c0b8c7 (diff)
Core/Commands: Slightly improve output of bnetaccount create command
Ref #18002
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r--src/server/scripts/Commands/cs_battlenet_account.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/server/scripts/Commands/cs_battlenet_account.cpp b/src/server/scripts/Commands/cs_battlenet_account.cpp
index bd063a38f98..beca60abc10 100644
--- a/src/server/scripts/Commands/cs_battlenet_account.cpp
+++ b/src/server/scripts/Commands/cs_battlenet_account.cpp
@@ -84,18 +84,25 @@ public:
if (createGameAccountParam)
createGameAccount = StringToBool(createGameAccountParam);
- switch (Battlenet::AccountMgr::CreateBattlenetAccount(std::string(accountName), std::string(password), createGameAccount))
+ std::string gameAccountName;
+ switch (Battlenet::AccountMgr::CreateBattlenetAccount(std::string(accountName), std::string(password), createGameAccount, &gameAccountName))
{
case AccountOpResult::AOR_OK:
- handler->PSendSysMessage(LANG_ACCOUNT_CREATED, accountName);
+ {
+ if (createGameAccount)
+ handler->PSendSysMessage(LANG_ACCOUNT_CREATED_BNET_WITH_GAME, accountName, gameAccountName.c_str());
+ else
+ handler->PSendSysMessage(LANG_ACCOUNT_CREATED_BNET, accountName);
+
if (handler->GetSession())
{
- TC_LOG_INFO("entities.player.character", "Battle.net account: %u (IP: %s) Character:[%s] (%s) created Account %s",
+ TC_LOG_INFO("entities.player.character", "Account: %u (IP: %s) Character:[%s] (%s) created Battle.net account %s%s%s",
handler->GetSession()->GetAccountId(), handler->GetSession()->GetRemoteAddress().c_str(),
handler->GetSession()->GetPlayer()->GetName().c_str(), handler->GetSession()->GetPlayer()->GetGUID().ToString().c_str(),
- accountName);
+ accountName, createGameAccount ? " with game account " : "", createGameAccount ? gameAccountName.c_str() : "");
}
break;
+ }
case AccountOpResult::AOR_NAME_TOO_LONG:
handler->SendSysMessage(LANG_ACCOUNT_TOO_LONG);
handler->SetSentErrorMessage(true);