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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user