diff --git a/src/net/socialgamer/cah/handlers/ChatHandler.java b/src/net/socialgamer/cah/handlers/ChatHandler.java index e77d754..8d67727 100644 --- a/src/net/socialgamer/cah/handlers/ChatHandler.java +++ b/src/net/socialgamer/cah/handlers/ChatHandler.java @@ -93,6 +93,7 @@ public class ChatHandler extends GameWithPlayerHandler { broadcastData.put(LongPollResponse.FROM, user.getNickname()); broadcastData.put(LongPollResponse.MESSAGE, message); broadcastData.put(LongPollResponse.FROM_ADMIN, user.isAdmin()); + broadcastData.put(LongPollResponse.GAME_ID, game.getId()); // TODO once there are multiple chat channels, put the destination here // TODO once there are games and they have their own chat, make it only send to participants game.broadcastToPlayers(MessageType.CHAT, broadcastData);