diff options
Diffstat (limited to 'src/server/game/Handlers/CharacterHandler.cpp')
-rw-r--r-- | src/server/game/Handlers/CharacterHandler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/game/Handlers/CharacterHandler.cpp b/src/server/game/Handlers/CharacterHandler.cpp index 44ebbf6091d..bb7117e2f3b 100644 --- a/src/server/game/Handlers/CharacterHandler.cpp +++ b/src/server/game/Handlers/CharacterHandler.cpp @@ -689,7 +689,7 @@ void WorldSession::HandlePlayerLoginOpcode(WorldPacket& recvData) if (PlayerLoading() || GetPlayer() != nullptr) { TC_LOG_ERROR("network", "Player tries to login again, AccountId = %d", GetAccountId()); - KickPlayer(); + KickPlayer("WorldSession::HandlePlayerLoginOpcode Another client logging in"); return; } @@ -701,7 +701,7 @@ void WorldSession::HandlePlayerLoginOpcode(WorldPacket& recvData) if (!IsLegitCharacterForAccount(playerGuid)) { TC_LOG_ERROR("network", "Account (%u) can't login with that character (%s).", GetAccountId(), playerGuid.ToString().c_str()); - KickPlayer(); + KickPlayer("WorldSession::HandlePlayerLoginOpcode Trying to login with a character of another account"); return; } @@ -728,7 +728,7 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder* holder) if (!pCurrChar->LoadFromDB(playerGuid, holder)) { SetPlayer(nullptr); - KickPlayer(); // disconnect client, player no set to session and it will not deleted or saved at kick + KickPlayer("WorldSession::HandlePlayerLogin Player::LoadFromDB failed"); // disconnect client, player no set to session and it will not deleted or saved at kick delete pCurrChar; // delete it manually delete holder; // delete all unprocessed queries m_playerLoading = false; @@ -1348,7 +1348,7 @@ void WorldSession::HandleCharCustomize(WorldPacket& recvData) TC_LOG_ERROR("entities.player.cheat", "Account %u, IP: %s tried to customise %s, but it does not belong to their account!", GetAccountId(), GetRemoteAddress().c_str(), customizeInfo->Guid.ToString().c_str()); recvData.rfinish(); - KickPlayer(); + KickPlayer("WorldSession::HandleCharCustomize Trying to customise character of another account"); return; } @@ -1601,7 +1601,7 @@ void WorldSession::HandleCharFactionOrRaceChange(WorldPacket& recvData) TC_LOG_ERROR("entities.player.cheat", "Account %u, IP: %s tried to factionchange character %s, but it does not belong to their account!", GetAccountId(), GetRemoteAddress().c_str(), factionChangeInfo->Guid.ToString().c_str()); recvData.rfinish(); - KickPlayer(); + KickPlayer("WorldSession::HandleCharFactionOrRaceChange Trying to change faction of character of another account"); return; } |