Guest user is not allowed to send chat messages.

This commit is contained in:
lotodore
2010-03-28 12:54:11 +00:00
parent 20c49abaff
commit 5df5d6609c
+2 -1
View File
@@ -230,7 +230,8 @@ AbstractServerGameStateReceiving::ProcessPacket(boost::shared_ptr<ServerGame> se
// Chat text is always allowed.
else if (packet->GetMsg()->present == PokerTHMessage_PR_chatRequestMessage)
{
if (session.playerData) // Only forward if this player is known.
// Only forward if this player is known and not a guest.
if (session.playerData && session.playerData->GetRights() != PLAYER_RIGHTS_GUEST)
{
// Forward chat text to all players.
// TODO: Some limitation needed.