Enabling banning a player from the client (as admin).

This commit is contained in:
lotodore
2013-02-28 20:38:37 +01:00
parent 44b90f9433
commit 0052de02e1
5 changed files with 20 additions and 1 deletions
+10
View File
@@ -386,6 +386,16 @@ ClientThread::SendAdminRemoveGame(unsigned removeGameId)
m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet));
}
void
ClientThread::SendAdminBanPlayer(unsigned playerId)
{
boost::shared_ptr<NetPacket> packet(new NetPacket);
packet->GetMsg()->set_messagetype(PokerTHMessage::Type_AdminBanPlayerMessage);
AdminBanPlayerMessage *netBan = packet->GetMsg()->mutable_adminbanplayermessage();
netBan->set_banplayerid(playerId);
m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet));
}
void
ClientThread::StartAsyncRead()
{