From 7169afbc3444d4e9dc3d2c31fe156436bc122c8c Mon Sep 17 00:00:00 2001
From: nightfox <>
Date: Thu, 11 Jun 2015 02:30:15 +0000
Subject: [PATCH] Version 1.02: Bug fix in DDScanMsgs.js: Switched to
 bbs.scan_msgs() instead of bbs.scan_subs() for all other scan modes besides
 SCAN_READ.  Updated the version number to reflect that; no change to the
 actual reader.  Also fixed an error in the readme that said sbbs/subs when it
 should say sbbs/mods.

---
 xtrn/DDMsgReader/DDMsgReader.js                   |  9 ++++++---
 .../Loadable module scripts/DDScanMsgs.js         | 15 ++++++++++-----
 xtrn/DDMsgReader/Read Me.txt                      |  6 +++---
 3 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/xtrn/DDMsgReader/DDMsgReader.js b/xtrn/DDMsgReader/DDMsgReader.js
index f68571e52f..b79fcc2106 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 f21f69f913..e0e29ed27c 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 ff0ddc9bca..3d57bb357b 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.
-- 
GitLab