Skip to content
Snippets Groups Projects
Commit 02f38bc1 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix a few text.dat string length checks (oops)

Finish removing the AutoLogonViaIP support from this script
parent 84ccf989
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4887 passed
...@@ -190,12 +190,6 @@ function display_menu(thisuser) ...@@ -190,12 +190,6 @@ function display_menu(thisuser)
console.putmsg(format(bbs.text(bbs.text.UserDefaultsNetMail) console.putmsg(format(bbs.text(bbs.text.UserDefaultsNetMail)
,on_or_off(thisuser.settings & USER_NETMAIL), thisuser.netmail)); ,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 if (bbs.text(bbs.text.UserDefaultsQuiet).length
&& (thisuser.security.exemptions & UFLAG_Q)) { && (thisuser.security.exemptions & UFLAG_Q)) {
keys += 'D'; keys += 'D';
...@@ -420,7 +414,7 @@ while(bbs.online && !js.terminated) { ...@@ -420,7 +414,7 @@ while(bbs.online && !js.terminated) {
if (console.aborted) if (console.aborted)
break; break;
if (term & USER_ANSI) { 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; thisuser.settings |= USER_MOUSE;
else else
thisuser.settings &= ~USER_MOUSE; thisuser.settings &= ~USER_MOUSE;
...@@ -433,7 +427,7 @@ while(bbs.online && !js.terminated) { ...@@ -433,7 +427,7 @@ while(bbs.online && !js.terminated) {
else else
thisuser.settings &= ~USER_NO_EXASCII; thisuser.settings &= ~USER_NO_EXASCII;
thisuser.settings &= ~USER_SWAP_DELETE; 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)) && !(thisuser.settings & (USER_PETSCII | USER_SWAP_DELETE))
&& bbs.online) { && bbs.online) {
console.putmsg(bbs.text(bbs.text.HitYourBackspaceKey)); console.putmsg(bbs.text(bbs.text.HitYourBackspaceKey));
...@@ -442,7 +436,7 @@ while(bbs.online && !js.terminated) { ...@@ -442,7 +436,7 @@ while(bbs.online && !js.terminated) {
if (key == '\b') if (key == '\b')
break; break;
if (key == '\x7f') { 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; thisuser.settings |= USER_SWAP_DELETE;
} }
else if (key == PETSCII_DELETE) { else if (key == PETSCII_DELETE) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment