summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-11-14 12:16:05 +0100
committerTor Andersson <tor@ccxvii.net>2021-11-14 12:16:09 +0100
commit70a58f6fbff84cb13a5f536b03a136c19d18eb60 (patch)
tree57ef1cb9c9f1eff0fb202b8d970b63f9f576e304 /server.js
parent65e122492bd9cdd74b0a993a53875834071df53e (diff)
downloadserver-70a58f6fbff84cb13a5f536b03a136c19d18eb60.tar.gz
Don't leak mail addresses to clients.
Diffstat (limited to 'server.js')
-rw-r--r--server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.js b/server.js
index 343e46d..06cb7fe 100644
--- a/server.js
+++ b/server.js
@@ -1627,7 +1627,7 @@ io.on('connection', (socket) => {
if (title_id !== socket.title_id)
return socket.emit('error', "Invalid game ID.");
- let players = SQL_SELECT_PLAYERS.all(socket.game_id);
+ let players = SQL_SELECT_PLAYERS_JOIN.all(socket.game_id);
if (socket.role !== "Observer") {
let me;