Core/Misc: add level to login/logout logs, it will help to find xp exploits (aokromes)
This commit is contained in:
@@ -1002,8 +1002,8 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder* holder)
|
|||||||
SendNotification(LANG_GM_ON);
|
SendNotification(LANG_GM_ON);
|
||||||
|
|
||||||
std::string IP_str = GetRemoteAddress();
|
std::string IP_str = GetRemoteAddress();
|
||||||
sLog->outChar("Account: %d (IP: %s) Login Character:[%s] (GUID: %u)",
|
sLog->outChar("Account: %d (IP: %s) Login Character:[%s] (GUID: %u) Level: %d",
|
||||||
GetAccountId(), IP_str.c_str(), pCurrChar->GetName(), pCurrChar->GetGUIDLow());
|
GetAccountId(), IP_str.c_str(), pCurrChar->GetName(), pCurrChar->GetGUIDLow(), pCurrChar->getLevel());
|
||||||
|
|
||||||
if (!pCurrChar->IsStandState() && !pCurrChar->HasUnitState(UNIT_STATE_STUNNED))
|
if (!pCurrChar->IsStandState() && !pCurrChar->HasUnitState(UNIT_STATE_STUNNED))
|
||||||
pCurrChar->SetStandState(UNIT_STAND_STATE_STAND);
|
pCurrChar->SetStandState(UNIT_STAND_STATE_STAND);
|
||||||
|
|||||||
@@ -537,7 +537,7 @@ void WorldSession::LogoutPlayer(bool Save)
|
|||||||
// e.g if he got disconnected during a transfer to another map
|
// e.g if he got disconnected during a transfer to another map
|
||||||
// calls to GetMap in this case may cause crashes
|
// calls to GetMap in this case may cause crashes
|
||||||
_player->CleanupsBeforeDelete();
|
_player->CleanupsBeforeDelete();
|
||||||
sLog->outChar("Account: %d (IP: %s) Logout Character:[%s] (GUID: %u)", GetAccountId(), GetRemoteAddress().c_str(), _player->GetName(), _player->GetGUIDLow());
|
sLog->outChar("Account: %d (IP: %s) Logout Character:[%s] (GUID: %u) Level: %d", GetAccountId(), GetRemoteAddress().c_str(), _player->GetName(), _player->GetGUIDLow(), _player->getLevel());
|
||||||
if (Map* _map = _player->FindMap())
|
if (Map* _map = _player->FindMap())
|
||||||
_map->RemovePlayerFromMap(_player, true);
|
_map->RemovePlayerFromMap(_player, true);
|
||||||
SetPlayer(NULL); // deleted in Remove call
|
SetPlayer(NULL); // deleted in Remove call
|
||||||
|
|||||||
Reference in New Issue
Block a user