diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-07-12 13:35:27 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-07-12 13:35:27 +0200 |
commit | 55436117ba198b1588815ed37d21a1603940d04a (patch) | |
tree | 8570e138a0da3a44ba2a1f9509cad8fb6a612c86 /src | |
parent | 47a5902b29b908948e94c2b3c2cc4b4ca3c7e780 (diff) |
Core/Commands: Fixed bnetaccount create not printing gameaccount name
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Commands/cs_battlenet_account.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Commands/cs_battlenet_account.cpp b/src/server/scripts/Commands/cs_battlenet_account.cpp index 3abab0ae78a..b7285cf5897 100644 --- a/src/server/scripts/Commands/cs_battlenet_account.cpp +++ b/src/server/scripts/Commands/cs_battlenet_account.cpp @@ -82,7 +82,7 @@ public: { case AccountOpResult::AOR_OK: { - if (createGameAccount == true) + if (createGameAccount != false) handler->PSendSysMessage(LANG_ACCOUNT_CREATED_BNET_WITH_GAME, accountName.c_str(), gameAccountName.c_str()); else handler->PSendSysMessage(LANG_ACCOUNT_CREATED_BNET, accountName.c_str()); @@ -92,7 +92,7 @@ public: 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.c_str(), createGameAccount == true ? " with game account " : "", createGameAccount == true ? gameAccountName.c_str() : ""); + accountName.c_str(), createGameAccount != false ? " with game account " : "", createGameAccount != false ? gameAccountName.c_str() : ""); } break; } |