Skip to content

Commit 5995933

Browse files
committed
What the hell is going on with this merging hell?
2 parents 3e3bfc1 + 109f8af commit 5995933

2 files changed

Lines changed: 37 additions & 14 deletions

File tree

ddoc2.js

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ load("/sbbs/exec/load/nodedefs.js");
2828
//pseudo-globals
2929
const excuse = "\n\nThe rothe strikes! You die!. . .\n\n",
3030
debugOnly = false, topebaseno = 6,
31-
alwaysLogout = false, std_logging = true;
31+
alwaysLogout = false, std_logging = true, maxMsgs = 500;
3232

3333
//a few easier hooks for the ctrl-a codes
3434
const ctrl_a = "\1";
@@ -815,6 +815,24 @@ if (!debugOnly) {
815815
roomData.tieIns.zapRoom(bbs.cursub);
816816
}
817817
break;
818+
case '0':
819+
case '1':
820+
case '2':
821+
case '3':
822+
case '4':
823+
case '5':
824+
case '6':
825+
case '7':
826+
case '8':
827+
case '9': //we're going to read message by number here
828+
//there will, of course, have to be some error checking for
829+
//trying to hit out of bounds messages if dispMsg() doesn't
830+
//already have it
831+
console.putmsg(green + high_intensity + "Go to message #> ");
832+
console.ungetstr(uchoice); //put it back on the input stack
833+
msg_base.dispMsg(new MsgBase(bbs.cursub_code),
834+
console.getnum(maxMsgs), false);
835+
break;
818836
case '$': //change debugging flags for this user
819837
var dropOut = false;
820838
var un;

load/dmbase.js

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ msg_base = {
227227
e.number + " back. :(\n");
228228
}
229229
break;
230-
<<<<<<< HEAD
231230
case '%':
232231
//add a bit here so that a user w/level greater than 80 can
233232
//reset pointers for other users, as well (if we keep the
@@ -237,23 +236,29 @@ msg_base = {
237236
console.putmsg(yellow + "Resetting scan_ptr for: " +
238237
base.cfg.code + "\n");
239238

240-
board.scan_ptr = 1;
241-
=======
242-
case '%': //reset message pointer back to the start
243-
if (user.security.level >= 80) {
244-
var board = msg_area.sub[base.cfg.code];
245-
if (userSettings.debug.misc) {
246-
console.putmsg(yellow + "Resetting scan_ptr for: " +
247-
base.cfg.code + "\n");
248-
}
249-
250239
board.scan_ptr = 1;
251240
} else {
252241
console.putmsg(red + "Unable to reset scan_ptr for: " +
253242
base.cfg.code + " for " + user.alias + " due to " +
254243
"security level restrictions.");
255-
>>>>>>> 1816c5648f9bb1e4b94c2249aa32aba94220874e
256244
}
245+
case '0':
246+
case '1':
247+
case '2':
248+
case '3':
249+
case '4':
250+
case '5':
251+
case '6':
252+
case '7':
253+
case '8':
254+
case '9': //we're going to read message by number here
255+
//there will, of course, have to be some error checking for
256+
//trying to hit out of bounds messages if dispMsg() doesn't
257+
//already have it
258+
console.putmsg(green + high_intensity + "Go to message #> ");
259+
console.ungetstr(uchoice); //put it back on the input stack
260+
msg_base.dispMsg(new MsgBase(bbs.cursub_code),
261+
console.getnum(maxMsgs), false);
257262
break;
258263
default:
259264
console.putmsg(normal + yellow + "Invalid choice\n");
@@ -539,7 +544,7 @@ msg_base = {
539544
} catch (e) {
540545
console.putmsg(red + "Unable to open Mail> sub:\t" + e.message +
541546
"\n");
542-
throw new dDocException("dispMsg() Error",
547+
throw new docIface.dDocException("dispMsg() Error",
543548
"Unable to open mail sub: " + e.message, 2);
544549
}
545550
}

0 commit comments

Comments
 (0)