Skip to content
Snippets Groups Projects
Commit 2def2d77 authored by rswindell's avatar rswindell
Browse files

Change made in rev 1.32 (default import pointer is 0xffffffff (import none))

didn't work since JS interpretted ~0 as -1, so now initializing the default
import pointer to NaN (not a number), which works to import NO messages
for a newly linked sub-board (resolving a sysop FAQ).
parent ca5b0413
No related branches found
No related tags found
No related merge requests found
......@@ -236,7 +236,7 @@ for(i in area) {
/* Read Pointer File */
/*********************/
export_ptr = 0;
import_ptr = ~0; // Set to highest possible message number
import_ptr = NaN; // Set to highest possible message number
ptr_fname = msgbase.file + ".snl";
ptr_file = new File(ptr_fname);
if(ptr_file.open("rb")) {
......@@ -403,7 +403,7 @@ for(i in area) {
if(ptr < first_msg)
ptr = first_msg;
else {
if(ptr > last_msg)
if(ptr > last_msg || isNaN(ptr))
ptr = last_msg;
ptr++;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment