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

Use the return value of bbs.xfer_prot_menu()

Also use console.quit_key for localization support
parent 84cfdbe4
Branches
Tags
No related merge requests found
...@@ -529,15 +529,14 @@ while(bbs.online && !js.terminated) { ...@@ -529,15 +529,14 @@ while(bbs.online && !js.terminated) {
thisuser.settings ^= USER_ASK_SSCAN; thisuser.settings ^= USER_ASK_SSCAN;
break; break;
case 'Z': case 'Z':
var c = 0; var keylist = console.quit_key;
var keylist = 'Q';
console.newline(); console.newline();
console.print(gettext("Choose a default file transfer protocol (or [ENTER] for None):")); console.print(gettext("Choose a default file transfer protocol (or [ENTER] for None):"));
console.newline(2); console.newline(2);
bbs.xfer_prot_menu(); keylist += bbs.xfer_prot_menu();
console.mnemonics(bbs.text(bbs.text.ProtocolOrQuit)); console.mnemonics(bbs.text(bbs.text.ProtocolOrQuit));
var kp = console.getkeys(keylist); var kp = console.getkeys(keylist);
if (kp === 'Q' || console.aborted) if (kp === console.quit_key || console.aborted)
break; break;
thisuser.download_protocol = kp; thisuser.download_protocol = kp;
if (kp && console.yesno(bbs.text(bbs.text.HangUpAfterXferQ))) if (kp && console.yesno(bbs.text(bbs.text.HangUpAfterXferQ)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment