From abd360d9fd6dc1a77cd38c213bc9532d85973ca0 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 8 Jun 2015 04:49:37 +0100 Subject: the server now handles the language properly Signed-off-by: Olivier Gayot --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server.py') diff --git a/server.py b/server.py index 80cc153..7391e8e 100755 --- a/server.py +++ b/server.py @@ -28,7 +28,8 @@ def message_received_handler(client, server, message): except KeyError: res = cao_error('field `game_name\' is required') else: - res = client['cao_client'].join_game(game_name) + lang = json_msg.get('lang') + res = client['cao_client'].join_game(game_name, lang) elif op == 'view_player_cards': res = client['cao_client'].view_player_cards() elif op == 'view_black_card': -- cgit v1.2.3