From f37104e6ec222a6995c558b8edf0071ec33a24d2 Mon Sep 17 00:00:00 2001 From: lotodore Date: Sun, 14 Nov 2010 01:13:23 +0000 Subject: [PATCH] Kick players from a game when they try to start it without proper rights to do so (was ignored previously). --- src/net/common/servergamestate.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/net/common/servergamestate.cpp b/src/net/common/servergamestate.cpp index a343605c..f67b9737 100644 --- a/src/net/common/servergamestate.cpp +++ b/src/net/common/servergamestate.cpp @@ -555,6 +555,10 @@ ServerGameStateInit::InternalProcessPacket(boost::shared_ptr server, { SendStartEvent(*server, netStartEvent->fillWithComputerPlayers); } + else // kick players who try to start but are not allowed to + { + server->MoveSessionToLobby(session, NTF_NET_REMOVED_START_FAILED); + } } else if (packet->GetMsg()->present == PokerTHMessage_PR_invitePlayerToGameMessage) {