Some status improvements.

Status messages now consistently use the game's uname, and the table
of choices puts the games in the right order.
This commit is contained in:
John "Elwin" Edwards 2012-06-20 08:49:10 -07:00
parent 4c27e44ef8
commit f711cdb591
2 changed files with 10 additions and 4 deletions

View file

@ -806,7 +806,7 @@ function statusmsg(req, res) {
var gamedesc = {};
gamedesc["n"] = sessid;
gamedesc["p"] = sessions[sessid].pname;
gamedesc["g"] = sessions[sessid].game.name;
gamedesc["g"] = sessions[sessid].game.uname;
reply["g"].push(gamedesc);
}
res.writeHead(200, { "Content-Type": "application/json" });