comparison rlgwebd.js @ 88:d644e7d46852

RLG-Web: make /pstatus/* differentiate between dgl and RLG-Web games. The /pstatus/ API now responds with "p" for games being played in RLG-Web and "d" for games being played in dgamelaunch.
author John "Elwin" Edwards <elwin@sdf.org>
date Mon, 09 Jul 2012 12:51:12 -0700
parents bd2cf6dda28d
children e07f98799120
comparison
equal deleted inserted replaced
87:bd2cf6dda28d 88:d644e7d46852
387 sdata[game.uname] = "0"; 387 sdata[game.uname] = "0";
388 finishp(); 388 finishp();
389 } 389 }
390 function regactive(err, filename, game) { 390 function regactive(err, filename, game) {
391 if (!err && filename) { 391 if (!err && filename) {
392 sdata[game.uname] = "p"; 392 if (filename.match(/^[^:]*:node:/))
393 sdata[game.uname] = "p";
394 else
395 sdata[game.uname] = "d";
393 finishp(); 396 finishp();
394 } 397 }
395 else 398 else
396 checksaved(user, game, regsaved, [game]); 399 checksaved(user, game, regsaved, [game]);
397 } 400 }