Skip to content
Snippets Groups Projects
Commit c16bfb2d authored by rswindell's avatar rswindell
Browse files

Prompt for/save the hub's name (i.e. name of hub sysop).

parent cc62e456
No related branches found
No related tags found
No related merge requests found
...@@ -41,13 +41,18 @@ if(system.fido_addr_list.length ...@@ -41,13 +41,18 @@ if(system.fido_addr_list.length
var hub = {zone: NaN, net: NaN, node: NaN}; var hub = {zone: NaN, net: NaN, node: NaN};
do { do {
while(isNaN(hub.zone) || hub.zone < 1) 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) 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) 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))); } 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) { if(hub.zone > 6) {
do { do {
var str = prompt("Network name (no spaces or illegal filename chars) [" + netname + "]"); var str = prompt("Network name (no spaces or illegal filename chars) [" + netname + "]");
...@@ -136,6 +141,7 @@ if(confirm("Update FidoNet configuration file: sbbsecho.ini")) { ...@@ -136,6 +141,7 @@ if(confirm("Update FidoNet configuration file: sbbsecho.ini")) {
|| confirm("Overwrite hub [" + section + "] configuration in " + file.name)) { || confirm("Overwrite hub [" + section + "] configuration in " + file.name)) {
if(!file.iniSetObject(section, if(!file.iniSetObject(section,
{ {
Name: hub_name,
AreaFixPwd: areafixpwd, AreaFixPwd: areafixpwd,
SessionPwd: sessionpwd, SessionPwd: sessionpwd,
GroupHub: netname, GroupHub: netname,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment