Commit 0867b35a authored by nanahira's avatar nanahira

fix

parent 81567716
...@@ -24,14 +24,14 @@ ...@@ -24,14 +24,14 @@
results = []; results = [];
for (i = 0, len = ref.length; i < len; i++) { for (i = 0, len = ref.length; i < len; i++) {
client = ref[i]; client = ref[i];
var push_data = { var cname = client.name;
username: client.name,
position: client.pos
};
if (settings.modules.http.show_ip) { if (settings.modules.http.show_ip) {
push_data.username = client.name + " (" + client.ip + ")"; cname = client.name + " (" + client.ip + ")";
} }
results.push(push_data); results.push({
username: cname,
position: client.pos
});
} }
return results; return results;
})(), })(),
......
...@@ -2358,14 +2358,14 @@ ...@@ -2358,14 +2358,14 @@
results = []; results = [];
for (k = 0, len1 = ref1.length; k < len1; k++) { for (k = 0, len1 = ref1.length; k < len1; k++) {
player = ref1[k]; player = ref1[k];
var push_data = { var cname = player.name;
username: client.name,
position: client.pos
};
if (settings.modules.tournament_mode.show_ip) { if (settings.modules.tournament_mode.show_ip) {
push_data.username = client.name + " (" + client.ip + ")"; cname = player.name + " (" + player.ip + ")";
} }
results.push(push_data); results.push({
name: cname,
winner: player.pos === room.winner
});
} }
return results; return results;
})() })()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment