From fabbad66cd65eeeabc0ef1fcceafe347a21cb2e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Tue, 28 Jan 2025 18:13:45 -0500 Subject: [PATCH] Add syncterm-ssh and syncterm-telnet commands These prefer the protocol after the - and only include one listing per BBS entry. --- exec/sbbslist.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/exec/sbbslist.js b/exec/sbbslist.js index b5b1f9f6fd..089eb22732 100644 --- a/exec/sbbslist.js +++ b/exec/sbbslist.js @@ -2415,6 +2415,12 @@ function main() case "syncterm": print(list.length + " BBS entries exported to: " + lib.syncterm_list(list, system.data_dir)); break; + case "syncterm-ssh": + print(list.length + " BBS entries exported to: " + lib.syncterm_list(list, system.data_dir, ['ssh', 'telnet'], true)); + break; + case "syncterm-telnet": + print(list.length + " BBS entries exported to: " + lib.syncterm_list(list, system.data_dir, ['telnet', 'rlogin', 'raw', 'ssh'], true)); + break; case "html": file_backup("sbbslist.html", limit ? limit : options.backup_level); var f = new File("sbbslist.html"); -- GitLab