--- sbbs/src/sbbs3/scfg/scfgnode.c 2018/04/24 16:41:24 1.1.1.1 +++ sbbs/src/sbbs3/scfg/scfgnode.c 2018/04/24 16:44:54 1.1.1.2 @@ -1,12 +1,12 @@ /* scfgnode.c */ -/* $Id: scfgnode.c,v 1.1.1.1 2018/04/24 16:41:24 root Exp $ */ +/* $Id: scfgnode.c,v 1.1.1.2 2018/04/24 16:44:54 root Exp $ */ /**************************************************************************** * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * * - * Copyright 2006 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * @@ -129,7 +129,8 @@ If you want to abort the creation of thi str[strlen(str)-1]=0; MKDIR(str); cfg.node_num=++cfg.sys_nodes; - sprintf(cfg.node_name,"Node %u",cfg.node_num); + SAFEPRINTF(cfg.node_name,"Node %u",cfg.node_num); + SAFECOPY(cfg.node_phone,"N/A"); cfg.new_install=new_install; write_node_cfg(&cfg,backup_level); write_main_cfg(&cfg,backup_level); @@ -183,6 +184,7 @@ void node_cfg() while(1) { i=0; + sprintf(opt[i++],"%-27.27s%s","Phone Number",cfg.node_phone); sprintf(opt[i++],"%-27.27s%.40s","Logon Requirements",cfg.node_arstr); strcpy(opt[i++],"Toggle Options..."); strcpy(opt[i++],"Advanced Options..."); @@ -209,10 +211,19 @@ Options with a trailing ... will produ return; break; case 0: +SETHELP(WHERE); +/* +`Node Phone Number:` +This is the phone number to access the selected node (e.g. for SEXPOTS). +This value is used for documentary purposes only. +*/ + uifc.input(WIN_MID|WIN_SAV,0,10,"Phone Number",cfg.node_phone,sizeof(cfg.node_phone)-1,K_EDIT); + break; + case 1: sprintf(str,"Node %u Logon",cfg.node_num); getar(str,cfg.node_arstr); break; - case 1: + case 2: done=0; while(!done) { i=0; @@ -407,7 +418,7 @@ option to No. break; } } break; - case 2: + case 3: done=0; while(!done) { i=0;