From c16bfb2d03714d8c1abfdf02e1d7ac872552f797 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sun, 15 Mar 2020 19:42:42 +0000 Subject: [PATCH] Prompt for/save the hub's name (i.e. name of hub sysop). --- exec/init-fidonet.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/exec/init-fidonet.js b/exec/init-fidonet.js index 55e8d2dfc8..6163ba5138 100644 --- a/exec/init-fidonet.js +++ b/exec/init-fidonet.js @@ -41,13 +41,18 @@ if(system.fido_addr_list.length var hub = {zone: NaN, net: NaN, node: NaN}; do { while(isNaN(hub.zone) || hub.zone < 1) - hub.zone = parseInt(prompt("Your hub/uplink's zone number (e.g. 1 for FidoNet North America)")); + hub.zone = parseInt(prompt("Your hub's zone number (e.g. 1 for FidoNet North America)")); while(isNaN(hub.net) || hub.net < 1) - hub.net = parseInt(prompt("Your hub/uplink's network number")); + hub.net = parseInt(prompt("Your hub's network number")); while(isNaN(hub.node) || hub.node < 0) - hub.node = parseInt(prompt("Your hub/uplink's node number")); + hub.node = parseInt(prompt("Your hub's node number")); } while(!confirm("Your hub's address is: " + fidoaddr.to_str(hub))); +var hub_name; +do { + hub_name = prompt("Your hub's name"); +} while(!hub_name || !confirm("Your hub's name: " + hub_name)); + if(hub.zone > 6) { do { var str = prompt("Network name (no spaces or illegal filename chars) [" + netname + "]"); @@ -136,6 +141,7 @@ if(confirm("Update FidoNet configuration file: sbbsecho.ini")) { || confirm("Overwrite hub [" + section + "] configuration in " + file.name)) { if(!file.iniSetObject(section, { + Name: hub_name, AreaFixPwd: areafixpwd, SessionPwd: sessionpwd, GroupHub: netname, -- GitLab