Skip to content

Commit 8f12202

Browse files
committed
Fixed a small bug in findNew() that was hanging up the scan
1 parent 9ba73e8 commit 8f12202

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

ddoc2.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,7 @@ docIface = {
255255
+ "\n");
256256
}
257257

258-
if (!roomData.tieIns.isZapped(ndx)
259-
/*msg_area.sub[bbs.cursub_code].index)*/
260-
) {
258+
if (!roomData.tieIns.isZapped(ndx)) {
261259
if (userSettings.debug.navigation) {
262260
console.putmsg("Room not zapped\n");
263261
}
@@ -267,7 +265,7 @@ docIface = {
267265
break;
268266
}
269267

270-
if (subList[ndx].scan_ptr != mBase.total_msgs) {
268+
if (subList[ndx].scan_ptr < mBase.total_msgs) {
271269
docIface.nav.setSub(subList[ndx]);
272270
mBase.close();
273271
return subList[ndx];

load/dmbase.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ msg_base = {
306306
console.putmsg("Made it past openNewMBase();\n");
307307
}
308308
//if (!roomData.tieIns.isZapped(msg_area.sub[bbs.cursub_code].index)) {
309-
if (msg_area.sub[bbs.cursub_code].scan_ptr <= mBase.total_msgs) {
309+
if (msg_area.sub[bbs.cursub_code].scan_ptr < mBase.total_msgs) {
310310
msg_base.scanSub(msg_area.sub[bbs.cursub_code],
311311
msg_base.util.remap_message_indices(
312312
mBase),
@@ -722,7 +722,7 @@ msg_base = {
722722

723723
//this should be swapped out for proper message base open validation
724724
if (!base.is_open) {
725-
//let's give this a shot
725+
//let's give this a shotjoin
726726
if (userSettings.debug.message_scan) {
727727
console.putmsg(yellow + "base was closed; reopening\n");
728728
}

0 commit comments

Comments
 (0)