Core/Misc: Kick player in case of multiple CMSG_PLAYER_LOGIN

Kick player in addition to logging an error in case of multiple CMSG_PLAYER_LOGIN.
This commit is contained in:
jackpoz committed 2014-06-02 17:03:31 +02:00
1 parent 26370223a0
commit 0c1ddc970d
1 file changed
+1
@@ -762,6 +762,7 @@ void WorldSession::HandlePlayerLoginOpcode(WorldPacket& recvData)
if (PlayerLoading() || GetPlayer() != NULL)
{
TC_LOG_ERROR("network", "Player tryes to login again, AccountId = %d", GetAccountId());
KickPlayer();
return;
}