summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.js b/server.js
index 962d277..d3dfe80 100644
--- a/server.js
+++ b/server.js
@@ -2368,7 +2368,7 @@ wss.on('connection', (socket, req, client) => {
}
if (socket.seen === 0)
- send_message(socket, 'players', [socket.role, players])
+ send_message(socket, 'players', [socket.role, players.map(p => ({ name: p.name, role: p.role }))])
if (game_clients[socket.game_id])
game_clients[socket.game_id].push(socket)