Commit e6017a35 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Restore stealth legacy login prompt (NN:)

This old prompt used to be sent for any login scripts (e.g. QWKnet
via dial-up) that would key off that WWIV-like "name or number"
(NN:) prompt, but was removed (accidentally?) in commit fedabb0b.

Send "NN: " and "PW: " (include the trailing space, just in case), and use
carriage return to move back (and overwrite) rather than 4 backspaces.
parent 10584a80
......@@ -34,7 +34,9 @@ for(var c=0; c < options.login_prompts; c++) {
bbs.nodesync();
// Display login prompt
var str = "\r\n\1n\1h\1cEnter \1wUser Name";
const legacy_login_prompt = "NN: \r";
const legacy_password_prompt = "PW: \r";
var str = "\1n\1h\1cEnter \1wUser Name";
if(!(bbs.node_settings&NM_NO_NUM))
str += "\1c or \1wNumber";
if(!(system.settings&SYS_CLOSED))
......@@ -42,7 +44,9 @@ for(var c=0; c < options.login_prompts; c++) {
if(guest)
str += "\1c or '\1yGuest\1c'";
str += "\r\nLogin: \1w";
console.print(word_wrap(str, console.screen_columns-1).trimRight());
console.print("\r\n"
+ legacy_login_prompt
+ word_wrap(str, console.screen_columns-1).trimRight());
// Get login string
var str;
......@@ -64,7 +68,7 @@ for(var c=0; c < options.login_prompts; c++) {
continue;
}
// Continue normal login (prompting for password)
if(bbs.login(str, "\1n\1c\1hPW:\b\b\bPassword: \1w")) {
if(bbs.login(str, legacy_password_prompt + "\1n\1c\1hPassword: \1w")) {
bbs.logon();
exit();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment