Skip to content
Merged

Devel #183

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
a981aab
Fixed poor aliasing in ddoc2.js for space leading to new message scan
dgets Jun 22, 2015
b6efc98
Merge branch 'devel' of github.com:dgets/DOCshell into devel
dgets Jun 22, 2015
734be47
Fixed some syntax in commit that also closes #173 and closes #172
dgets Jun 24, 2015
10fb7ed
Fixed #172 and #173
dgets Jun 24, 2015
da0e3b6
Merge branch 'hotfix' into devel
dgets Jun 24, 2015
14cb164
Started coding new message scan functionality to use remap_message_in…
dgets Jun 26, 2015
84f4184
Working on hasUnread() in dmbase.js for issue #172 and other related …
dgets Jun 27, 2015
b94bd93
Closed #173; poasting is now fixed
dgets Jun 27, 2015
b8a8029
Squashed multiple bugs en route to solving #172
dgets Jun 27, 2015
97c797f
Fixed jump abort; closed #175
dgets Jun 29, 2015
90ba667
More progress on getting message scan fixed (issue #172)
dgets Jun 29, 2015
1c3810d
More debugging en route to fixing #172, #172
dgets Jul 2, 2015
e31ca6d
Found and quashed some more bugs; things still are not fixed, but closer
dgets Jul 4, 2015
9ba73e8
Squished bad MSG_DELETED (MSG_DELETE is what was wanted) in dmbase.js…
dgets Jul 4, 2015
8f12202
Fixed a small bug in findNew() that was hanging up the scan
dgets Jul 19, 2015
e0c1fe3
Added scan_ptr reset function '%' to deal with corrupt pointer issue …
dgets Jul 23, 2015
acce344
Patched a quick [ugly] fix in for issue #179 (going to message by num…
dgets Jul 23, 2015
327e6aa
Merge pull request #182 from dgets/message-remap-support
dgets Jul 23, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 32 additions & 18 deletions ddoc2.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,13 @@ docIface = {
var ndx = subList[bbs.cursub].index;
var mBase;

if (userSettings.debug.navigation) {
if (userSettings.debug.message_scan) {
console.putmsg(yellow + "Entering findNew()\nWorking with subList" +
" of length: " + subList.length + "\nContents: " +
subList.toString() + "\n");
" of length " + subList.length + "; contents:\n");
for each(var tmpSub in subList) {
console.putmsg("* " + cyan + tmpSub.name + "\n");
}
console.putmsg("\n");
}

for ( /* ndx already set */ ; ndx < subList.length ; ndx += 1 ) {
Expand All @@ -252,23 +255,31 @@ docIface = {
+ "\n");
}

if (!roomData.tieIns.isZapped(ndx)
/*msg_area.sub[bbs.cursub_code].index)*/
) {
if (!roomData.tieIns.isZapped(ndx)) {
mBase = msg_base.util.openNewMBase(subList[ndx].code);

if (userSettings.debug.navigation) {
console.putmsg("Room not zapped\n");
console.putmsg("Room not zapped\t\tscan_ptr: " +
subList[ndx].scan_ptr + "\t\ttotal: " +
mBase.total_msgs + "\n");
}

mBase = msg_base.openNewMBase(subList[ndx].code);
if (mBase == null) {

if (mBase == null) {
break;
}

if (subList[ndx].scan_ptr != mBase.total_msgs) {
if (subList[ndx].scan_ptr < mBase.total_msgs) {
docIface.nav.setSub(subList[ndx]);
mBase.close();
return subList[ndx];
}
} else if (subList[ndx].scan_ptr > mBase.total_msg) {
//we've got some corrupt shit to fix here; not sure how it
//happened but we might as well have a way to fix it
subList[ndx].scan_ptr = mBase.first_msg;
if (userSettings.debug.navigation) {
console.putmsg(yellow + " just fixed scan ptrs\n");
}
}
mBase.close();
}
}
Expand Down Expand Up @@ -309,7 +320,11 @@ docIface = {
docIface.util.quitDdoc();
}
ouah = "Mail"; //vestigial?
} else {
} else if (uChoice == "") {
//abort
console.putmsg(yellow + "Aborted jump to new room . . .\n");
return;
} else {
try {
ouah = this.chk4Room(uChoice);
} catch (e) {
Expand All @@ -329,7 +344,7 @@ docIface = {
}
}

if (ouah == "Mail") {
if (ouah == "MAIL") {
bbs.log_str("Jumped to Mail");
} else {
bbs.log_str("Jumped to " + this.setSub(ouah));
Expand Down Expand Up @@ -690,17 +705,15 @@ if (!debugOnly) {

console.putmsg("\n" + dprompt);
uchoice = docIface.getChoice();
//poor aliasing
if (uchoice == ' ') {
uchoice = 'n';
}

switch (uchoice) {
//top menu
case '?':
docIface.doMainMenu();
break;
//message base entry commands
case ' ':
uchoice = 'n';
case 'b':
case 'e':
case 'E':
Expand All @@ -709,6 +722,7 @@ if (!debugOnly) {
case 'o':
case 'k':
case '-':
case '%':
msg_base.entry_level.handler(uchoice);
break;
//other msg base shit
Expand Down
Loading