diff options
author | joschiwald <joschiwald.trinity@gmail.com> | 2017-07-09 17:24:08 +0200 |
---|---|---|
committer | joschiwald <joschiwald.trinity@gmail.com> | 2017-07-09 17:24:08 +0200 |
commit | edca8e03ea5fd575fcbef79bbd74daaf7674ac1a (patch) | |
tree | ac3fafb21b0743c7ecf4cd0f258b63ba9f506fe5 | |
parent | fc8f0fbc2d6f903f7e742dbfb0d5315470f5414d (diff) |
Scripts/Commands: Fixed typo in battlenet password command
-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 679a49a8eb8..32649f1c7d7 100644 --- a/src/server/scripts/Commands/cs_battlenet_account.cpp +++ b/src/server/scripts/Commands/cs_battlenet_account.cpp @@ -242,12 +242,12 @@ public: } // We compare the old, saved password to the entered old password - no chance for the unauthorized. - if (!Battlenet::AccountMgr::CheckPassword(handler->GetSession()->GetAccountId(), std::string(oldPassword))) + if (!Battlenet::AccountMgr::CheckPassword(handler->GetSession()->GetBattlenetAccountId(), std::string(oldPassword))) { handler->SendSysMessage(LANG_COMMAND_WRONGOLDPASSWORD); handler->SetSentErrorMessage(true); TC_LOG_INFO("entities.player.character", "Battle.net account: %u (IP: %s) Character:[%s] (%s) Tried to change password, but the provided old password is wrong.", - handler->GetSession()->GetAccountId(), handler->GetSession()->GetRemoteAddress().c_str(), + handler->GetSession()->GetBattlenetAccountId(), handler->GetSession()->GetRemoteAddress().c_str(), handler->GetSession()->GetPlayer()->GetName().c_str(), handler->GetSession()->GetPlayer()->GetGUID().ToString().c_str()); return false; } |