Skip to content

Commit 6e563b6

Browse files
committed
Working on menu option to enable user debug settings modification for anyone (if sysop) or self
1 parent b546fce commit 6e563b6

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

ddoc2.js

Lines changed: 27 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,31 @@ if (!debugOnly) {
807808
roomData.tieIns.zapRoom(bbs.cursub);
808809
}
809810
break;
811+
case '$': //change debugging flags for this user
812+
if (user.security.level < 80) {
813+
userRecords.userDataUI.queryDebugSettings(user.number);
814+
} else {
815+
console.putmsg(yellow + high_intensity + "User name to " +
816+
"modify debug settings for: ");
817+
var un = bbs.finduser(console.getstr());
818+
819+
while (un < 1) {
820+
console.putmsg(red + high_intensity + "User not " +
821+
"found. Enter another username or <ENTER> to " +
822+
" escape.\nUsername: ");
823+
un = console.getstr();
824+
825+
if (un == "") {
826+
break;
827+
} else {
828+
un = bbs.finduser(un);
829+
}
830+
}
831+
832+
//we should have a valid # now or else be out of here :P
833+
userRecords.userDataUI.queryDebugSettings(un);
834+
}
835+
break;
810836
default:
811837
console.putmsg(excuse);
812838
break;

0 commit comments

Comments
 (0)