diff 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
line wrap: on
line diff
--- a/rlgwebd.js	Mon Jul 09 12:24:03 2012 -0700
+++ b/rlgwebd.js	Mon Jul 09 12:51:12 2012 -0700
@@ -389,7 +389,10 @@
   }
   function regactive(err, filename, game) {
     if (!err && filename) {
-      sdata[game.uname] = "p";
+      if (filename.match(/^[^:]*:node:/))
+        sdata[game.uname] = "p";
+      else
+        sdata[game.uname] = "d";
       finishp();
     }
     else