diff --git a/xtrn/DDMsgReader/DDMsgReader.js b/xtrn/DDMsgReader/DDMsgReader.js index f68571e52fb2ae0b3435dc67e4196b2dc8afb8db..b79fcc2106563410593257dd102ac3da868f5faa 100644 --- a/xtrn/DDMsgReader/DDMsgReader.js +++ b/xtrn/DDMsgReader/DDMsgReader.js @@ -25,7 +25,10 @@ * Bug fix: Updated the setting of the enhanced reader * header width to use the longest line in the header * (rather than the length of only the first line) to - * ensure that the header displays correctly. + * ensure that the header displays correctly. + * 2015-06-10 Eric Oulashin Version 1.02 + * Updated the version to reflect a bug fix in + * DDScanMsgs.js. No change to the actual reader. */ /* Command-line arguments (in -arg=val format, or -arg format to enable an @@ -113,8 +116,8 @@ if (system.version_num < 31500) } // Reader version information -var READER_VERSION = "1.01"; -var READER_DATE = "2015-05-17"; +var READER_VERSION = "1.02"; +var READER_DATE = "2015-06-10"; // Keyboard key codes for displaying on the screen var UP_ARROW = ascii(24); diff --git a/xtrn/DDMsgReader/Loadable module scripts/DDScanMsgs.js b/xtrn/DDMsgReader/Loadable module scripts/DDScanMsgs.js index f21f69f9138f063555583ee406c24ec01c7d2a9b..e0e29ed27ca2f5442c450a4263ec3140dd0f7d9d 100644 --- a/xtrn/DDMsgReader/Loadable module scripts/DDScanMsgs.js +++ b/xtrn/DDMsgReader/Loadable module scripts/DDScanMsgs.js @@ -4,6 +4,13 @@ // This module is used for: // - Simply reading a sub-board // - Find text in messages +// +// Date Author Description +// 2015-05-06 Eric Oulashin Version 1.0 - Initial release +// 2015-06-10 Eric Oulashin Version 1.02 +// Bug fix: Switched to bbs.scan_msgs() instead of +// bbs.scan_subs() for all other scan modes besides +// SCAN_READ. // For stock Synchronet functionality: //bbs.scan_msgs([sub-board=current] [,mode=SCAN_READ] [,string find]) @@ -18,7 +25,7 @@ console.print("\1n"); // 3. Optional: Search text (if any) if (argc < 2) { - console.print("\1h\1yNot enough arguments were passed to the Scan Posts module! Please inform the"); + console.print("\1h\1yNot enough arguments were passed to the Scan Messages module! Please inform the"); console.crlf(); console.print("sysop.\1n"); console.crlf(); @@ -33,7 +40,7 @@ var searchText = argv[2]; // SYSOPS: Change the msgReaderPath variable if you put Digital Distortion // Message Reader in a different path -var msgReaderPath = "../xtrn/DDMsgReader"; +var msgReaderPath = "../xtrn/DigDist/MsgReader"; // The start of the command string to use with bbs.exec() @@ -45,7 +52,5 @@ if (scanMode == SCAN_READ) bbs.exec(rdrCmdStrStart + "-subBoard=" + subBoardCode + " -startMode=read"); // Some modes that the Digital Distortion Message Reader doesn't handle yet: Use // Synchronet's stock behavior. -else if (((scanMode & SCAN_CONST) == SCAN_CONST) || ((scanMode & SCAN_BACK) == SCAN_BACK)) - bbs.scan_subs(scanMode, scanAllSubs); -else // Stock Synchronet behavior +else bbs.scan_msgs(subBoardCode, scanMode, searchText); \ No newline at end of file diff --git a/xtrn/DDMsgReader/Read Me.txt b/xtrn/DDMsgReader/Read Me.txt index ff0ddc9bca796a05454fc23f8df77bca589556bb..3d57bb357becda2df8453be3e9d3c129a227f976 100644 --- a/xtrn/DDMsgReader/Read Me.txt +++ b/xtrn/DDMsgReader/Read Me.txt @@ -1,6 +1,6 @@ Digital Distortion Message Reader - Version 1.01 - Release date: 2015-05-17 + Version 1.02 + Release date: 2015-06-10 by @@ -130,7 +130,7 @@ editor. The first 3 files (DDMsgReader.js, DDMsgReader.cfg, and DefaultTheme) can be placed together in any directory; the next 3 (DDReadPersonalEmail.js, -DDScanMsgs.js, and DDScanSubs.js) should be copied to your sbbs/subs directory. +DDScanMsgs.js, and DDScanSubs.js) should be copied to your sbbs/mods directory. The examples in this document will assume the first 3 files are in the sbbs/xtrn/DDMsgReader directory.