From 55436117ba198b1588815ed37d21a1603940d04a Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 12 Jul 2022 13:35:27 +0200 Subject: Core/Commands: Fixed bnetaccount create not printing gameaccount name --- src/server/scripts/Commands/cs_battlenet_account.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/scripts/Commands') 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; } -- cgit v1.2.3