Skip to content
Snippets Groups Projects
Commit e00273b8 authored by Eric Oulashin's avatar Eric Oulashin Committed by Rob Swindell
Browse files

DDMsgreader: Fix for "assignment to undeclared variable" error

parent 33c42d38
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!234DDMsgreader: Fix for "assignment to undeclared variable" error
......@@ -64,6 +64,8 @@
* also checks to make sure the sender is a sysop. Also, used putmsg() in
* place of this script's own @-message parsing when displaying some of the
* configured text strings.
* 2022-12-12 Eric Oulashin Fix for "assignment to undeclared variable" error in GetMsgSubBrdLine();
* appeared when changing to a different message area from the reader
*/
 
"use strict";
......@@ -168,8 +170,8 @@ var ansiterm = require("ansiterm_lib.js", 'expand_ctrl_a');
 
 
// Reader version information
var READER_VERSION = "1.57";
var READER_DATE = "2022-12-02";
var READER_VERSION = "1.57.1";
var READER_DATE = "2022-12-12";
 
// Keyboard key codes for displaying on the screen
var UP_ARROW = ascii(24);
......@@ -11940,7 +11942,7 @@ function DigDistMsgReader_GetMsgSubBrdLine(pGrpIndex, pSubIndex, pHighlight)
if (numMsgs > 0)
{
// Get the header of the last message in the sub-board
msgHeader = null;
var msgHeader = null;
var msgOffset = msgBase.total_msgs - 1;
while (!isReadableMsgHdr(msgHeader, msg_area.grp_list[pGrpIndex].sub_list[pSubIndex].code) && (msgOffset >= 0))
msgHeader = msgBase.get_msg_header(true, --msgOffset, true);
......
Digital Distortion Message Reader
Version 1.57
Release date: 2022-12-02
Version 1.57.1
Release date: 2022-12-12
by
......
......@@ -5,6 +5,7 @@ Revision History (change log)
=============================
Version Date Description
------- ---- -----------
1.57.1 2022-12-12 Fix for "assignment to undeclared variable" error
1.57 2022-12-02 @-codes were only expanded when reading personal mail;
now, DDMsgReader also checks to make sure the sender is a
sysop.
......
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