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

Add -force and -share options, handle missing protocol property.

parent de455e84
Branches
Tags
No related merge requests found
...@@ -736,8 +736,8 @@ function verify_bbs(bbs) ...@@ -736,8 +736,8 @@ function verify_bbs(bbs)
for(i in bbs.service) { for(i in bbs.service) {
if(js.terminated) if(js.terminated)
break; break;
var protocol = bbs.service[i].protocol.toLowerCase(); var protocol = bbs.service[i].protocol;
if(protocol != "telnet" && protocol != "rlogin") if(!protocol || (protocol.toLowerCase() != "telnet" && protocol.toLowerCase() != "rlogin"))
continue; continue;
bbs.entry.autoverify.attempts++; bbs.entry.autoverify.attempts++;
var result = verify_terminal_service(bbs.service[i]); var result = verify_terminal_service(bbs.service[i]);
...@@ -2327,6 +2327,9 @@ function main() ...@@ -2327,6 +2327,9 @@ function main()
case "-exclude": case "-exclude":
exclude.push(val); exclude.push(val);
break; break;
case "-force":
export_freq = 0;
break;
case "-format": case "-format":
if(val === undefined || val === '?' || !val.length) { if(val === undefined || val === '?' || !val.length) {
print("Supported list formats:"); print("Supported list formats:");
...@@ -2578,6 +2581,9 @@ function main() ...@@ -2578,6 +2581,9 @@ function main()
break; break;
} }
break; break;
case "share":
print(lfexpand(JSON.stringify(lib.share_list(list, optval[cmd] == "qwk"), null, 1)));
break;
case "add": case "add":
if(lib.system_exists(list, system.name)) { if(lib.system_exists(list, system.name)) {
alert("System '" + system.name + "' already exists"); alert("System '" + system.name + "' already exists");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment