diff --git a/rlgterm.js b/rlgterm.js index b85f4da..85ba232 100644 --- a/rlgterm.js +++ b/rlgterm.js @@ -562,6 +562,8 @@ function getchoices() { acttext = "Start a game"; else if (reply.stat[gname] == "p") acttext = "Game in progress"; + else if (reply.stat[gname] == "d") + acttext = "Game in progress (dgl)"; else continue; var button = document.createElement("span"); diff --git a/rlgwebd.js b/rlgwebd.js index 56dae1d..4d50315 100755 --- a/rlgwebd.js +++ b/rlgwebd.js @@ -389,7 +389,10 @@ function playerstatus(user, callback) { } 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