diff --git a/xtrn/DDMsgReader/DDMsgReader.js b/xtrn/DDMsgReader/DDMsgReader.js index 81c99d5b493e302d25b5f09d3e799f8f5db8a131..48a06021d8eb9a179afdbffb12cd7f4575f82d88 100644 --- a/xtrn/DDMsgReader/DDMsgReader.js +++ b/xtrn/DDMsgReader/DDMsgReader.js @@ -193,6 +193,11 @@ * sub-boards that have new messages, ensure the selected item * index is correct when re-populating the menu so that it doesn't * skip a sub-board. + * 2024-11-26 Eric Oulashin Version 1.96e + * When showing a poll result message, for the user who posted the poll, + * show the answers from the people who voted on it. This is to + * basically mimic the fact that Synchronet shows who voted on your + * poll and what they answered, but in the poll message itself. */ "use strict"; @@ -300,8 +305,8 @@ var hexdump = load('hexdump_lib.js'); // Reader version information -var READER_VERSION = "1.96d"; -var READER_DATE = "2024-11-25"; +var READER_VERSION = "1.96e Beta"; +var READER_DATE = "2024-11-26"; // Keyboard key codes for displaying on the screen var UP_ARROW = ascii(24); @@ -18750,7 +18755,40 @@ function DigDistMsgReader_GetMsgBody(pMsgHdr) { var msgWrittenLocalTime = msgWrittenTimeToLocalBBSTime(tmpHdrs[tmpProp]); var voteDate = strftime("%a %b %d %Y %H:%M:%S", msgWrittenLocalTime); - retObj.msgBody += format(userVotedInYourPollText, voteDate, grpName, msgbaseCfgName, tmpHdrs[tmpProp].from, pMsgHdr.subject); + //retObj.msgBody += format(userVotedInYourPollText, voteDate, grpName, msgbaseCfgName, tmpHdrs[tmpProp].from, pMsgHdr.subject); + var voterStr = format(userVotedInYourPollText, voteDate, grpName, msgbaseCfgName, tmpHdrs[tmpProp].from, pMsgHdr.subject); + var voterStrArray = lfexpand(word_wrap(voterStr, console.screen_columns-1, null, false)).split("\r\n"); + for (var voterStrI = 0; voterStrI < voterStrArray.length; ++voterStrI) + { + retObj.msgBody += voterStrArray[voterStrI]; + if (voterStrI < voterStrArray.length-1) + retObj.msgBody += "\r\n"; + } + // tmpHdrs[tmpProp].votes is a bitfield of which options they voted for + if (!/\r\n$/.test(userVotedInYourPollText)) + retObj.msgBody += "\r\n"; + // MSG_POLL_MAX_ANSWERS + var answerBitIdx = 0; + for (var fieldI = 0; fieldI < pMsgHdr.field_list.length; ++fieldI) + { + if (pMsgHdr.field_list[fieldI].type == SMB_POLL_ANSWER) + { + var answerBit = (1 << answerBitIdx); + if ((tmpHdrs[tmpProp].votes & answerBit) == answerBit) + { + var optionStrArray = lfexpand(word_wrap(pMsgHdr.field_list[fieldI].data, console.screen_columns-1, null, false)).split("\r\n"); + if (optionStrArray.length > 0) + { + if (optionStrArray[optionStrArray.length-1] == "") + optionStrArray.pop(); + retObj.msgBody += format(" - %s\r\n", optionStrArray[0]); + for (var optStrI = 1; optStrI < optionStrArray.length; ++optStrI) + retObj.msgBody += format("%s\r\n", optionStrArray[optStrI]); + } + } + ++answerBitIdx; + } + } } } // we could check the index records this way: @@ -18805,6 +18843,9 @@ function DigDistMsgReader_GetMsgBody(pMsgHdr) // Remove any Synchronet pause codes that might exist in the message retObj.msgBody = retObj.msgBody.replace("\x01p", "").replace("\x01P", ""); + + // Remote a trailing \r\n from the message, if it exists + retObj.msgBody = retObj.msgBody.replace(/\r\n$/g, ""); // If the user is a sysop, this is a moderated message area, and the message // hasn't been validated, then prepend the message with a message to let the diff --git a/xtrn/DDMsgReader/ddmr_cfg.js b/xtrn/DDMsgReader/ddmr_cfg.js index ed070b01e6fc2bdf642a3c74b7d11a0930aa2298..7da2d2c4bf8f496cfa70f40f6da3ebd42f4dc61c 100644 --- a/xtrn/DDMsgReader/ddmr_cfg.js +++ b/xtrn/DDMsgReader/ddmr_cfg.js @@ -18,7 +18,7 @@ require("sbbsdefs.js", "P_NONE"); require("uifcdefs.js", "UIFC_INMSG"); -if (!uifc.init("DigDist. Message Reader 1.96d Configurator")) +if (!uifc.init("DigDist. Message Reader 1.96e Configurator")) { print("Failed to initialize uifc"); exit(1); diff --git a/xtrn/DDMsgReader/readme.txt b/xtrn/DDMsgReader/readme.txt index cf3ce80cd5db44940a02b00efac22e1bc0221d28..331af9f793ffb0e399b4f49759c0d2489527c922 100644 --- a/xtrn/DDMsgReader/readme.txt +++ b/xtrn/DDMsgReader/readme.txt @@ -1,6 +1,6 @@ Digital Distortion Message Reader - Version 1.96d - Release date: 2024-11-25 + Version 1.96e + Release date: 2024-11-27 by @@ -1318,7 +1318,7 @@ This is an example of the sub-board menu that appears in indexed mode - And from here, the user can choose a sub-board to read: Description Total New Last Post -��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� +��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� AGN GEN - General Chat 1004 0 2023-04-02 AGN BBS - BBS Discussion 1000 0 2023-01-17 NEW AGN ART - Art/Demo Scene 603 1 2023-04-02 @@ -1327,7 +1327,7 @@ NEW AGN ART - Art/Demo Scene 603 1 2023-04-02 AGN L46 - League Scores & Recons 1000 0 2016-09-10 NEW AGN TST - Testing Setups 2086 10 2023-04-03 AGN SYS - Sysops Only 1000 0 2023-01-19 -��������������������������������������������������������������������������������������������������������������������������������������� FIDO - FidoNet ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ +��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� FIDO - FidoNet ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ NEW BBS CARNIVAL - BBS Software Chatter 660 5 2023-04-04 BBS INTERNET - DOS/Win/OS2/Unix Internet BBS Applicatio 18 0 2023-03-04 CHWARE - Cheepware Support/Discussion 111 0 2023-03-16 @@ -1360,20 +1360,20 @@ added for a user will be preserved (DDMsgReader does a bitwise 'or'). A quick-validation set in CFG is a set that includes a security level, flag sets, exemptions, restrictions, and additional credits. For example: -���������������������������[���������������������������][?]������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ -��������������������������� Quick-Validation Values ��������������������������� -��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� -��������������������������� ?0 SL: 5 F1: ��������������������������� -��������������������������� ?1 SL: 10 F1: ��������������������������� -��������������������������� ?2 SL: 20 F1: ��������������������������� -��������������������������� ?3 SL: 30 F1: ��������������������������� -��������������������������� ?4 SL: 40 F1: ��������������������������� -��������������������������� ?5 SL: 50 F1: ��������������������������� -��������������������������� ?6 SL: 60 F1: ��������������������������� -��������������������������� ?7 SL: 70 F1: ��������������������������� -��������������������������� ?8 SL: 80 F1: ��������������������������� -��������������������������� ?9 SL: 90 F1: ��������������������������� -��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� +���������������������������������������������������������������������������������[���������������������������������������������������������������������������������][?]������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ +��������������������������������������������������������������������������������� Quick-Validation Values ��������������������������������������������������������������������������������� +��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� +��������������������������������������������������������������������������������� ?0 SL: 5 F1: ��������������������������������������������������������������������������������� +��������������������������������������������������������������������������������� ?1 SL: 10 F1: ��������������������������������������������������������������������������������� +��������������������������������������������������������������������������������� ?2 SL: 20 F1: ��������������������������������������������������������������������������������� +��������������������������������������������������������������������������������� ?3 SL: 30 F1: ��������������������������������������������������������������������������������� +��������������������������������������������������������������������������������� ?4 SL: 40 F1: ��������������������������������������������������������������������������������� +��������������������������������������������������������������������������������� ?5 SL: 50 F1: ��������������������������������������������������������������������������������� +��������������������������������������������������������������������������������� ?6 SL: 60 F1: ��������������������������������������������������������������������������������� +��������������������������������������������������������������������������������� ?7 SL: 70 F1: ��������������������������������������������������������������������������������� +��������������������������������������������������������������������������������� ?8 SL: 80 F1: ��������������������������������������������������������������������������������� +��������������������������������������������������������������������������������� ?9 SL: 90 F1: ��������������������������������������������������������������������������������� +��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� 9. Drop file for replying to messages with Synchronet message editors diff --git a/xtrn/DDMsgReader/revision_history.txt b/xtrn/DDMsgReader/revision_history.txt index 618e0f52a9cd0b533c8073e9ae5d59880c6a1a94..9b7a62c4f0cc383d30fb306c7262b1510dd49b8d 100644 --- a/xtrn/DDMsgReader/revision_history.txt +++ b/xtrn/DDMsgReader/revision_history.txt @@ -5,6 +5,11 @@ Revision History (change log) ============================= Version Date Description ------- ---- ----------- +1.96e 2024-11-27 When showing a poll result message, for the user who + posted the poll, show the answers from the people who + voted on it. This is to basically mimic the fact that + Synchronet shows who voted on your poll and what they + answered, but in the poll message itself. 1.96d 2024-11-25 Bug fix: For the indexed-mode newscan, when showing only sub-boards that have new messages, ensure the selected item index is correct when re-populating the menu so that diff --git a/xtrn/slyvote/readme.txt b/xtrn/slyvote/readme.txt index cfd776dd99a612545e7eaa3382becd83a42eea0b..64f9c03f44dbf990a93c4185a2a11a76b5ce2f35 100644 --- a/xtrn/slyvote/readme.txt +++ b/xtrn/slyvote/readme.txt @@ -1,6 +1,6 @@ SlyVote - Version 1.15 - Release date: 2023-09-20 + Version 1.16 + Release date: 2024-11-27 by @@ -117,26 +117,26 @@ To set up SlyVote in the Synchronet external programs menu: 1. Run SCFG 2. Choose "External Programs" and then "Online Programs (Doors)" 3. Choose a program section, and then add an entry that is set up as follows: -+[�][?]----------------------------------------------------+ -� SlyVote � -�----------------------------------------------------------� -� �Name SlyVote � -� �Internal Code SLYVOTE � -� �Start-up Directory ../xtrn/slyvote � -� �Command Line ?slyvote.js � -� �Clean-up Command Line � -� �Execution Cost None � -� �Access Requirements ANSI � -� �Execution Requirements � -� �Multiple Concurrent Users Yes � -� �Intercept I/O No � -� �Native Executable No � -� �Use Shell to Execute No � -� �Modify User Data No � -� �Execute on Event No � -� �Pause After Execution No � -� �BBS Drop File Type None � -� �Place Drop File In Node Directory � ++[¦][?]----------------------------------------------------+ +¦ SlyVote ¦ +¦----------------------------------------------------------¦ +¦ ¦Name SlyVote ¦ +¦ ¦Internal Code SLYVOTE ¦ +¦ ¦Start-up Directory ../xtrn/slyvote ¦ +¦ ¦Command Line ?slyvote.js ¦ +¦ ¦Clean-up Command Line ¦ +¦ ¦Execution Cost None ¦ +¦ ¦Access Requirements ANSI ¦ +¦ ¦Execution Requirements ¦ +¦ ¦Multiple Concurrent Users Yes ¦ +¦ ¦Intercept I/O No ¦ +¦ ¦Native Executable No ¦ +¦ ¦Use Shell to Execute No ¦ +¦ ¦Modify User Data No ¦ +¦ ¦Execute on Event No ¦ +¦ ¦Pause After Execution No ¦ +¦ ¦BBS Drop File Type None ¦ +¦ ¦Place Drop File In Node Directory ¦ +----------------------------------------------------------+ diff --git a/xtrn/slyvote/slyv_cfg.js b/xtrn/slyvote/slyv_cfg.js index 15f1d8158dba56b62b88ab7ab1689320813f5bee..3b29eb5a2afd9986ad26a00f13f588f74f166cf7 100644 --- a/xtrn/slyvote/slyv_cfg.js +++ b/xtrn/slyvote/slyv_cfg.js @@ -13,7 +13,7 @@ require("sbbsdefs.js", "P_NONE"); require("uifcdefs.js", "UIFC_INMSG"); -if (!uifc.init("SlyVote 1.15 Configurator")) +if (!uifc.init("SlyVote 1.16 Configurator")) { print("Failed to initialize uifc"); exit(1); diff --git a/xtrn/slyvote/slyvote.js b/xtrn/slyvote/slyvote.js index 9e709384274b6a018d00f0911efffd3107b9589f..c7f5537fe8bde0a752f540e53d3774455fc54c93 100644 --- a/xtrn/slyvote/slyvote.js +++ b/xtrn/slyvote/slyvote.js @@ -192,6 +192,11 @@ * what directory the script is running in. * Now uses user.is_sysop rather than storing a global * variable with an ARS check for "SYSOP". + * 2024-11-27 Eric Oulashin Version 1.16 + * When showing a poll result message, for the user who posted the poll, + * show the answers from the people who voted on it. This is to + * basically mimic the fact that Synchronet shows who voted on your + * poll and what they answered, but in the poll message itself. */ // TODO: Have a messsage group selection so that it doesn't have to display all @@ -263,8 +268,8 @@ else var gAvatar = load({}, "avatar_lib.js"); // Version information -var SLYVOTE_VERSION = "1.15"; -var SLYVOTE_DATE = "2023-12-09"; +var SLYVOTE_VERSION = "1.16"; +var SLYVOTE_DATE = "2024-11-27"; // Characters for display // Box-drawing/border characters: Single-line @@ -1646,8 +1651,40 @@ function GetMsgBody(pMsgbase, pMsgHdr, pSubBoardCode, pUser) { var msgWrittenLocalTime = MsgWrittenTimeToLocalBBSTime(tmpHdrs[tmpProp]); var voteDate = strftime("%a %b %d %Y %H:%M:%S", msgWrittenLocalTime); - msgBody += format(userVotedInYourPollText, voteDate, pMsgbase.cfg.grp_name, pMsgbase.cfg.name, - tmpHdrs[tmpProp].from, pMsgHdr.subject); + var voterStr = format(userVotedInYourPollText, voteDate, pMsgbase.cfg.grp_name, pMsgbase.cfg.name, + tmpHdrs[tmpProp].from, pMsgHdr.subject); + var voterStrArray = lfexpand(word_wrap(voterStr, console.screen_columns-1, null, false)).split("\r\n"); + for (var voterStrI = 0; voterStrI < voterStrArray.length; ++voterStrI) + { + msgBody += voterStrArray[voterStrI]; + if (voterStrI < voterStrArray.length-1) + msgBody += "\r\n"; + } + // tmpHdrs[tmpProp].votes is a bitfield of which options they voted for + if (!/\r\n$/.test(userVotedInYourPollText)) + msgBody += "\r\n"; + // MSG_POLL_MAX_ANSWERS + var answerBitIdx = 0; + for (var fieldI = 0; fieldI < pMsgHdr.field_list.length; ++fieldI) + { + if (pMsgHdr.field_list[fieldI].type == SMB_POLL_ANSWER) + { + var answerBit = (1 << answerBitIdx); + if ((tmpHdrs[tmpProp].votes & answerBit) == answerBit) + { + var optionStrArray = lfexpand(word_wrap(pMsgHdr.field_list[fieldI].data, console.screen_columns-1, null, false)).split("\r\n"); + if (optionStrArray.length > 0) + { + if (optionStrArray[optionStrArray.length-1] == "") + optionStrArray.pop(); + msgBody += format(" - %s\r\n", optionStrArray[0]); + for (var optStrI = 1; optStrI < optionStrArray.length; ++optStrI) + msgBody += format("%s\r\n", optionStrArray[optStrI]); + } + } + ++answerBitIdx; + } + } } } }