From b1d9b7438de9f089a3c2d620d95f8cb69e4b96e1 Mon Sep 17 00:00:00 2001 From: "Rob Swindell (on Debian Linux)" <rob@synchro.net> Date: Sun, 12 Nov 2023 17:04:22 -0800 Subject: [PATCH] Fix a few text.dat string length checks (oops) Finish removing the AutoLogonViaIP support from this script --- exec/user_settings.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/exec/user_settings.js b/exec/user_settings.js index 2ea7f07643..e10a2424f3 100644 --- a/exec/user_settings.js +++ b/exec/user_settings.js @@ -190,12 +190,6 @@ function display_menu(thisuser) console.putmsg(format(bbs.text(bbs.text.UserDefaultsNetMail) ,on_or_off(thisuser.settings & USER_NETMAIL), thisuser.netmail)); } - if ((bbs.startup_options & BBS_OPT_AUTO_LOGON) - && (thisuser.security.exemptions & UFLAG_V)) { - console.add_hotspot('I'); - console.putmsg(format(bbs.text(bbs.text.UserDefaultsAutoLogon) - ,on_or_off(thisuser.security.exceptions & UFLAG_V))); - } if (bbs.text(bbs.text.UserDefaultsQuiet).length && (thisuser.security.exemptions & UFLAG_Q)) { keys += 'D'; @@ -420,7 +414,7 @@ while(bbs.online && !js.terminated) { if (console.aborted) break; if (term & USER_ANSI) { - if (bbs.text(bbs.text.MouseTerminalQ) && console.yesno(bbs.text(bbs.text.MouseTerminalQ))) + if (bbs.text(bbs.text.MouseTerminalQ).length && console.yesno(bbs.text(bbs.text.MouseTerminalQ))) thisuser.settings |= USER_MOUSE; else thisuser.settings &= ~USER_MOUSE; @@ -433,7 +427,7 @@ while(bbs.online && !js.terminated) { else thisuser.settings &= ~USER_NO_EXASCII; thisuser.settings &= ~USER_SWAP_DELETE; - while(bbs.text(bbs.text.HitYourBackspaceKey) + while(bbs.text(bbs.text.HitYourBackspaceKey).length && !(thisuser.settings & (USER_PETSCII | USER_SWAP_DELETE)) && bbs.online) { console.putmsg(bbs.text(bbs.text.HitYourBackspaceKey)); @@ -442,7 +436,7 @@ while(bbs.online && !js.terminated) { if (key == '\b') break; if (key == '\x7f') { - if (bbs.text(bbs.text.SwapDeleteKeyQ) || console.yesno(bbs.text(bbs.text.SwapDeleteKeyQ))) + if (bbs.text(bbs.text.SwapDeleteKeyQ).length || console.yesno(bbs.text(bbs.text.SwapDeleteKeyQ))) thisuser.settings |= USER_SWAP_DELETE; } else if (key == PETSCII_DELETE) { -- GitLab