From 4c6a336a447fa784b128ffe5e704ef7bcc830fb6 Mon Sep 17 00:00:00 2001 From: Eric Oulashin <eric.oulashin@gmail.com> Date: Sun, 17 Dec 2023 12:26:15 -0800 Subject: [PATCH] SlyEdit: Now using msg_area.sub[code].settings to check for posting with real name instead of opening the sub-board to get the settings --- docs/slyedit_readme.txt | 4 ++-- exec/SlyEdit.js | 19 ++++++++----------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/docs/slyedit_readme.txt b/docs/slyedit_readme.txt index 177d7c0b4f..e5be78a682 100644 --- a/docs/slyedit_readme.txt +++ b/docs/slyedit_readme.txt @@ -1,6 +1,6 @@ SlyEdit message editor - Version 1.87 - Release date: 2023-08-15 + Version 1.87a + Release date: 2023-12-17 by diff --git a/exec/SlyEdit.js b/exec/SlyEdit.js index 0303c11f7d..85ab58a4bd 100644 --- a/exec/SlyEdit.js +++ b/exec/SlyEdit.js @@ -41,6 +41,10 @@ * Releasing this version * 2023-08-15 Eric Oulashin Version 1.87 * Improvement to paragraph/line breaks in quote line wrapping + * 2023-12-17 Eric Oulashin Version 1.87a + * Using the msg_area.sub object to check sub-board settings instead + * of opening the sub-board (for determining whether to post with + * real name) */ "use strict"; @@ -138,8 +142,8 @@ if (console.screen_columns < 80) } // Version information -var EDITOR_VERSION = "1.87"; -var EDITOR_VER_DATE = "2023-08-15"; +var EDITOR_VERSION = "1.87a"; +var EDITOR_VER_DATE = "2023-12-17"; // Program variables @@ -6154,17 +6158,10 @@ function getSignName(pSubCode, pRealNameOnlyFirst, pRealNameForEmail) var useRealName = false; if (typeof(pSubCode) === "string" && pSubCode != "") { - if (pSubCode.toUpperCase() == "MAIL") + if (pSubCode == "mail") useRealName = pRealNameForEmail; else - { - var msgbase = new MsgBase(pSubCode); - if (msgbase.open()) - { - useRealName = ((msgbase.cfg.settings & SUB_NAME) == SUB_NAME); - msgbase.close(); - } - } + useRealName = Boolean(msg_area.sub[pSubCode].settings & SUB_NAME); } var signName = ""; if (useRealName) -- GitLab