Commit 0867b35a authored by nanahira's avatar nanahira

fix

parent 81567716
......@@ -24,14 +24,14 @@
results = [];
for (i = 0, len = ref.length; i < len; i++) {
client = ref[i];
var push_data = {
username: client.name,
position: client.pos
};
var cname = client.name;
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;
})(),
......
......@@ -2358,14 +2358,14 @@
results = [];
for (k = 0, len1 = ref1.length; k < len1; k++) {
player = ref1[k];
var push_data = {
username: client.name,
position: client.pos
};
var cname = player.name;
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;
})()
......
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