Skip to content

Commit 5d0f310

Browse files
committed
Merge pull request #146 from dgets/debug-settings-mod-enabled
Debug settings mod enabled
2 parents be686c9 + 92ba573 commit 5d0f310

1 file changed

Lines changed: 32 additions & 1 deletion

File tree

ddoc2.js

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ docIface = {
7373
"<X>\ttoggle eXpress status\n<^X>\tcheck old X messages\n" +
7474
"<y>\tyell\n<z>\tzaproom\n<0-9>\tquickX\n<#>\tRead room by " +
7575
"number\n<->\tread last n messages\n<%>\ttoggle guideflag " +
76-
"status\n<@>\taidelist\n<\">\tquote Xes to Sysop\n\n",
76+
"status\n<@>\taidelist\n<\">\tquote Xes to Sysop\n" +
77+
"<$>\tchange debugging settings\n\n",
7778
sprompt : high_intensity + yellow + "<A>" + green + "bort " +
7879
yellow + "<C>" + green + "ontinue " + yellow + "<P>" +
7980
green + "rint " + yellow + "<S>" + green + "ave " + yellow +
@@ -807,6 +808,36 @@ if (!debugOnly) {
807808
roomData.tieIns.zapRoom(bbs.cursub);
808809
}
809810
break;
811+
case '$': //change debugging flags for this user
812+
var dropOut = false;
813+
var un;
814+
815+
if (user.security.level < 80) {
816+
userRecords.userDataUI.queryDebugSettings(user.number);
817+
} else {
818+
console.putmsg(yellow + high_intensity + "User name to " +
819+
"modify debug settings for: ");
820+
un = bbs.finduser(console.getstr());
821+
822+
while (un < 1) {
823+
console.putmsg(red + high_intensity + "User not " +
824+
"found. Enter another username or \"DONE\" to " +
825+
" escape.\nUsername: ");
826+
un = console.getstr();
827+
828+
if (un == "DONE") {
829+
dropOut = true;
830+
} else {
831+
un = bbs.finduser(un);
832+
}
833+
}
834+
835+
//we should have a valid # now or else be out of here :P
836+
if (!dropOut) {
837+
userRecords.userDataUI.queryDebugSettings(un);
838+
}
839+
}
840+
break;
810841
default:
811842
console.putmsg(excuse);
812843
break;

0 commit comments

Comments
 (0)