[Server] Log player kicks

This commit is contained in:
David Cernat 2018-10-13 09:34:29 +03:00
parent a3111fbcc1
commit bb834748c5

View file

@ -18,6 +18,8 @@ void ServerFunctions::Kick(unsigned short pid) noexcept
{ {
Player *player; Player *player;
GET_PLAYER(pid, player,); GET_PLAYER(pid, player,);
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Kicking player %s (%i)", player->npc.mName.c_str(), player->getId());
mwmp::Networking::getPtr()->kickPlayer(player->guid); mwmp::Networking::getPtr()->kickPlayer(player->guid);
} }