diff --git a/src/sbbs3/scfg/scfgchat.c b/src/sbbs3/scfg/scfgchat.c index 6792d5d21425dec7a3b7da90cc21dddaad49a9e6..eb88ddcc2337767dc0b33a791b55dae192956909 100644 --- a/src/sbbs3/scfg/scfgchat.c +++ b/src/sbbs3/scfg/scfgchat.c @@ -47,7 +47,6 @@ while(1) { for(i=0;i<cfg.total_pages && i<MAX_OPTS;i++) sprintf(opt[i],"%-40.40s %-.20s",cfg.page[i]->cmd,cfg.page[i]->arstr); opt[i][0]=0; - uifc.savnum=0; j=WIN_ACT|WIN_SAV|WIN_RHT|WIN_BOT; if(cfg.total_pages) j|=WIN_DEL|WIN_GET; @@ -126,7 +125,6 @@ This is the command line to execute for this external chat pager. ,cfg.page[i]->misc&IO_INTS ? "Yes":"No"); opt[k][0]=0; sprintf(str,"Sysop Chat Pager #%d",i+1); - uifc.savnum=1; switch(uifc.list(WIN_ACT|WIN_MID|WIN_SAV,0,0,60,&j,0,str,opt)) { case -1: done=1; @@ -144,7 +142,6 @@ This is the command line to execute for this external chat pager. strcpy(cfg.page[i]->cmd,str); break; case 1: - uifc.savnum=2; getar(str,cfg.page[i]->arstr); break; case 2: @@ -152,7 +149,6 @@ This is the command line to execute for this external chat pager. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Intercept I/O Interrupts: @@ -186,7 +182,6 @@ while(1) { sprintf(opt[i],"%-25s",cfg.chan[i]->name); opt[i][0]=0; j=WIN_ACT|WIN_SAV|WIN_BOT|WIN_RHT; - uifc.savnum=0; if(cfg.total_chans) j|=WIN_DEL|WIN_GET; if(cfg.total_chans<MAX_OPTS) @@ -300,7 +295,6 @@ channel name. This menu is for configuring the selected chat channel. */ - uifc.savnum=1; sprintf(str,"%s Chat Channel",cfg.chan[i]->name); switch(uifc.list(WIN_ACT|WIN_MID|WIN_SAV,0,0,60,&opt_dflt,0,str,opt)) { case -1: @@ -353,7 +347,6 @@ to be free, set this value to 0. cfg.chan[i]->cost=atol(str); break; case 3: - uifc.savnum=2; sprintf(str,"%s Chat Channel",cfg.chan[i]->name); getar(str,cfg.chan[i]->arstr); break; @@ -362,7 +355,6 @@ to be free, set this value to 0. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Allow Channel to be Password Protected: @@ -385,7 +377,6 @@ protect it, set this option to Yes. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Guru Joins This Channel When Empty: @@ -415,7 +406,6 @@ to have available in this channel. for(j=0;j<cfg.total_gurus && j<MAX_OPTS;j++) sprintf(opt[j],"%-25s",cfg.guru[j]->name); opt[j][0]=0; - uifc.savnum=2; k=uifc.list(WIN_SAV|WIN_RHT,0,0,25,&j,0 ,"Available Chat Gurus",opt); if(k==-1) @@ -434,7 +424,6 @@ wish to have available in this channel. for(j=0;j<cfg.total_actsets && j<MAX_OPTS;j++) sprintf(opt[j],"%-25s",cfg.actset[j]->name); opt[j][0]=0; - uifc.savnum=2; k=uifc.list(WIN_SAV|WIN_RHT,0,0,25,&j,0 ,"Available Chat Action Sets",opt); if(k==-1) @@ -460,7 +449,6 @@ while(1) { chatnum[j++]=i; } chatnum[j]=cfg.total_chatacts; opt[j][0]=0; - uifc.savnum=2; i=WIN_ACT|WIN_SAV; if(j) i|=WIN_DEL|WIN_GET; @@ -489,7 +477,6 @@ To configure an action, select it with the arrow keys and hit ENTER . */ sprintf(str,"%s Chat Actions",cfg.actset[setnum]->name); i=uifc.list(i,0,0,70,&chatact_dflt,&chatact_bar,str,opt); - uifc.savnum=3; if((signed)i==-1) return; if((i&MSK_ON)==MSK_INS) { @@ -584,7 +571,6 @@ while(1) { for(i=0;i<cfg.total_gurus && i<MAX_OPTS;i++) sprintf(opt[i],"%-25s",cfg.guru[i]->name); opt[i][0]=0; - uifc.savnum=0; j=WIN_ACT|WIN_SAV|WIN_RHT|WIN_BOT; if(cfg.total_gurus) j|=WIN_DEL|WIN_GET; @@ -681,7 +667,6 @@ it internally. This code is usually an abreviation of the Guru name. sprintf(opt[k++],"%-27.27s%s","Guru Internal Code",cfg.guru[i]->code); sprintf(opt[k++],"%-27.27s%.40s","Access Requirements",cfg.guru[i]->arstr); opt[k][0]=0; - uifc.savnum=1; SETHELP(WHERE); /* Guru Configuration: @@ -725,7 +710,6 @@ it internally. This code is usually an abreviation of the Guru name. uifc.helpbuf=0; } break; case 2: - uifc.savnum=2; getar(cfg.guru[i]->name,cfg.guru[i]->arstr); break; } } } } @@ -743,7 +727,6 @@ while(1) { sprintf(opt[i],"%-25s",cfg.actset[i]->name); opt[i][0]=0; j=WIN_ACT|WIN_RHT|WIN_BOT|WIN_SAV; - uifc.savnum=0; if(cfg.total_actsets) j|=WIN_DEL|WIN_GET; if(cfg.total_actsets<MAX_OPTS) @@ -826,7 +809,6 @@ This is the name of the selected chat action set. This menu is for configuring the selected chat action set. */ sprintf(str,"%s Chat Action Set",cfg.actset[i]->name); - uifc.savnum=1; switch(uifc.list(WIN_ACT|WIN_MID|WIN_SAV,0,0,60,&opt_dflt,0,str ,opt)) { case -1: diff --git a/src/sbbs3/scfg/scfgmdm.c b/src/sbbs3/scfg/scfgmdm.c index 428848b14924eb368301469e3e326bad0c629db2..26b328706ba8de9efd791658bd2a473da05d6063 100644 --- a/src/sbbs3/scfg/scfgmdm.c +++ b/src/sbbs3/scfg/scfgmdm.c @@ -273,9 +273,8 @@ while(!feof(stream)) { continue; } sprintf(msg,"ERROR: '%.15s' in %.8s.MDM",p,fname); - savnum--; umsg(msg); - savnum++; } +} fclose(stream); return(1); diff --git a/src/sbbs3/scfg/scfgmsg.c b/src/sbbs3/scfg/scfgmsg.c index 03636c4873c539db5496dcc5fc4f452c1941365a..290bc266ebeebc9407f1bd89fcf2222dac99c32a 100644 --- a/src/sbbs3/scfg/scfgmsg.c +++ b/src/sbbs3/scfg/scfgmsg.c @@ -161,7 +161,6 @@ subject denominator, you may want to have a separate message group for those sub-boards for a more organized message structure. */ i=uifc.list(j,0,0,45,&msgs_dflt,&bar,"Message Groups",opt); - uifc.savnum=0; if(i==-1) { j=save_changes(WIN_MID); if(j==-1) @@ -292,7 +291,6 @@ select Yes. strcpy(opt[j++],"Message Sub-boards..."); opt[j][0]=0; sprintf(str,"%s Group",cfg.grp[i]->sname); - uifc.savnum=0; SETHELP(WHERE); /* Message Group Configuration: @@ -795,7 +793,6 @@ void msg_opts() ? "Sysops Only":"No"); strcpy(opt[i++],"Extra Attribute Codes..."); opt[i][0]=0; - uifc.savnum=0; SETHELP(WHERE); /* Message Options: diff --git a/src/sbbs3/scfg/scfgnet.c b/src/sbbs3/scfg/scfgnet.c index 7fa17b21b5bfc7f7461ef18c7d27c4ac56de74ca..b835e8fb2087c41f03a174225238c08db80861f3 100644 --- a/src/sbbs3/scfg/scfgnet.c +++ b/src/sbbs3/scfg/scfgnet.c @@ -141,7 +141,6 @@ calls to exchange packets with. */ i=uifc.list(WIN_ACT|WIN_RHT|WIN_BOT|WIN_CHE,0,0,0,&qnet_dflt,0 ,"QWK Packet Networks",opt); - uifc.savnum=0; switch(i) { case -1: /* ESC */ done=1; @@ -168,7 +167,6 @@ basis with the sub-board configuration Network Options.... i|=WIN_INS|WIN_INSACT|WIN_XTR; if(cfg.total_qhubs) i|=WIN_DEL; - uifc.savnum=0; SETHELP(WHERE); /* QWK Network Hubs: @@ -197,7 +195,6 @@ To configure a hub, select it and hit ENTER . bail(1); continue; } - uifc.savnum=1; SETHELP(WHERE); /* QWK Network Hub System ID: @@ -298,7 +295,6 @@ using FidoNet technology. */ i=uifc.list(WIN_ACT|WIN_MID|WIN_CHE,0,0,60,&fnet_dflt,0 ,"FidoNet EchoMail and NetMail",opt); - uifc.savnum=0; switch(i) { case -1: /* ESC */ done=1; @@ -665,7 +661,6 @@ From this menu you can configure PostLink or PCRelay Networks. */ i=uifc.list(WIN_ACT|WIN_RHT|WIN_BOT|WIN_CHE,0,0,0,&pnet_dflt,0 ,"PostLink Networks",opt); - uifc.savnum=0; switch(i) { case -1: /* ESC */ done=1; @@ -704,7 +699,6 @@ Site Number for your BBS. i|=WIN_INS|WIN_INSACT|WIN_XTR; if(cfg.total_phubs) i|=WIN_DEL; - uifc.savnum=0; SETHELP(WHERE); /* PostLink Network Hubs: @@ -733,7 +727,6 @@ To configure a hub, select it and hit ENTER . bail(1); continue; } - uifc.savnum=1; SETHELP(WHERE); /* Network Hub Site Name: @@ -803,7 +796,6 @@ Internet E-mail. */ i=uifc.list(WIN_ACT|WIN_MID|WIN_CHE,0,0,60,&inet_dflt,0 ,"Internet E-mail",opt); - uifc.savnum=0; switch(i) { case -1: /* ESC */ done=1; @@ -960,7 +952,6 @@ while(!done) { strcpy(opt[i++],"Networked Sub-boards..."); opt[i][0]=0; sprintf(str,"%s Network Hub",cfg.qhub[num]->id); - uifc.savnum=1; SETHELP(WHERE); /* QWK Network Hub Configuration: @@ -1039,7 +1030,6 @@ network hub. sprintf(opt[i],"%s %s" ,wday[i],(cfg.qhub[num]->days&(1<<i)) ? "Yes":"No"); opt[i][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Days to Perform Call-out: @@ -1059,7 +1049,6 @@ network hub. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Perform Call-out at a Specific Time: @@ -1131,7 +1120,6 @@ while(1) { ,LEN_SSNAME,LEN_SSNAME ,cfg.sub[cfg.qhub[num]->sub[j]]->sname); opt[j][0]=0; - uifc.savnum=2; j=WIN_BOT|WIN_SAV|WIN_ACT; if(cfg.qhub[num]->subs<MAX_OPTS) j|=WIN_INS|WIN_INSACT|WIN_XTR; @@ -1157,10 +1145,8 @@ To configure a sub-board for this QWK network hub, select it and hit break; if((j&MSK_ON)==MSK_INS) { j&=MSK_OFF; - uifc.savnum=3; if((l=getsub())==-1) continue; - uifc.savnum=3; SETHELP(WHERE); /* Conference Number on Hub: @@ -1248,7 +1234,6 @@ this option to Strip out. "Strip out" : cfg.qhub[num]->mode[j]==A_LEAVE ? "Leave in" : "Expand to ANSI"); opt[n][0]=0; - uifc.savnum=3; SETHELP(WHERE); /* QWK Netted Sub-board: @@ -1262,13 +1247,11 @@ hub. if(l==-1) break; if(!l) { - uifc.savnum=4; m=getsub(); if(m!=-1) { cfg.qhub[num]->sub[j]=m; uifc.changes=1; } } else if(l==1) { - uifc.savnum=4; SETHELP(WHERE); /* Conference Number on Hub: @@ -1292,7 +1275,6 @@ sub-board is networked with on this QWK network hub. strcpy(opt[2],"Expand to ANSI"); opt[3][0]=0; m=0; - uifc.savnum=4; SETHELP(WHERE); /* Ctrl-A Codes: @@ -1337,7 +1319,6 @@ while(!done) { sprintf(opt[i++],"%-27.27s%s","Call-out Time",str); } opt[i][0]=0; sprintf(str,"%s Network Hub",cfg.phub[num]->name); - uifc.savnum=1; SETHELP(WHERE); /* PostLink Network Hub Configuration: @@ -1392,7 +1373,6 @@ hub. sprintf(opt[i],"%s %s" ,wday[i],(cfg.phub[num]->days&(1<<i)) ? "Yes":"No"); opt[i][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Days to Perform Call-out: @@ -1412,7 +1392,6 @@ hub. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Perform Call-out at a Specific Time: diff --git a/src/sbbs3/scfg/scfgnode.c b/src/sbbs3/scfg/scfgnode.c index 1d37f486f2b907f3a10a74caa61690ad369c056d..47ab061f837ab53aac0314a1a2996f76692c0bc7 100644 --- a/src/sbbs3/scfg/scfgnode.c +++ b/src/sbbs3/scfg/scfgnode.c @@ -234,7 +234,6 @@ Options with a trailing ... will produce a sub-menu of more options. ,cfg.node_misc&NM_CLOSENODEDAB ? "No":"Yes"); opt[i][0]=0; - uifc.savnum=0; SETHELP(WHERE); /* Node Toggle Options: @@ -255,7 +254,6 @@ more states, such as Yes and No. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=1; SETHELP(WHERE); /* Low Priority String Input: @@ -283,7 +281,6 @@ user, but improving aggregate system performance under multitaskers. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=1; SETHELP(WHERE); /* Allow Login by User Number: @@ -305,7 +302,6 @@ set this option to Yes. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=1; SETHELP(WHERE); /* Allow Login by Real Name: @@ -327,7 +323,6 @@ their alias, set this option to Yes. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=1; SETHELP(WHERE); /* Always Prompt for Password: @@ -349,7 +344,6 @@ prompt for a password, set this option to Yes. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=1; SETHELP(WHERE); /* Allow 8-bit Remote Input During Login: @@ -372,7 +366,6 @@ to send IBM extended ASCII characters during the login sequence. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=1; SETHELP(WHERE); /* Spinning Pause Prompt: @@ -394,7 +387,6 @@ this option to Yes. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=1; SETHELP(WHERE); /* Keep Node File Open: @@ -433,7 +425,6 @@ option to No. sprintf(opt[i++],"%-27.27s%.40s","Daily Event",cfg.node_daily); sprintf(opt[i++],"%-27.27s%.40s","Text Directory",cfg.text_dir); opt[i][0]=0; - uifc.savnum=0; SETHELP(WHERE); /* Node Advanced Options: diff --git a/src/sbbs3/scfg/scfgsub.c b/src/sbbs3/scfg/scfgsub.c index 517b127e1d31eb1c9e7008c7d708d030b51433fa..05334f8bdc726ea5bafbc254a660ab07f4d8e98a 100644 --- a/src/sbbs3/scfg/scfgsub.c +++ b/src/sbbs3/scfg/scfgsub.c @@ -57,7 +57,6 @@ while(1) { subnum[j]=cfg.total_subs; opt[j][0]=0; sprintf(str,"%s Sub-boards",cfg.grp[grpnum]->sname); - uifc.savnum=0; i=WIN_SAV|WIN_ACT; if(j) i|=WIN_DEL|WIN_GET|WIN_DELACT; @@ -80,7 +79,6 @@ To delete a sub-board, select it with the arrow keys and hit DEL . To configure a sub-board, select it with the arrow keys and hit ENTER . */ i=uifc.list(i,24,1,LEN_SLNAME+5,&dflt,&bar,str,opt); - uifc.savnum=1; if((signed)i==-1) return; if((i&MSK_ON)==MSK_INS) { @@ -136,7 +134,6 @@ usually an abreviation of the sub-board's name. continue; if(!code_ok(code)) { uifc.helpbuf=invalid_code; - uifc.savnum=0; uifc.msg("Invalid Code"); uifc.helpbuf=0; continue; @@ -276,7 +273,6 @@ If you want to delete all the messages for this sub-board, select Yes. strcpy(opt[n++],"Advanced Options..."); opt[n][0]=0; sprintf(str,"%s Sub-board",cfg.sub[i]->sname); - uifc.savnum=1; SETHELP(WHERE); /* Sub-board Configuration: @@ -356,27 +352,22 @@ sub-board's name and group name. ,cfg.sub[i]->newsgroup,sizeof(cfg.sub[i]->newsgroup)-1,K_EDIT); break; case 5: - uifc.savnum=2; sprintf(str,"%s Access",cfg.sub[i]->sname); getar(str,cfg.sub[i]->arstr); break; case 6: - uifc.savnum=2; sprintf(str,"%s Reading",cfg.sub[i]->sname); getar(str,cfg.sub[i]->read_arstr); break; case 7: - uifc.savnum=2; sprintf(str,"%s Posting",cfg.sub[i]->sname); getar(str,cfg.sub[i]->post_arstr); break; case 8: - uifc.savnum=2; sprintf(str,"%s Operator",cfg.sub[i]->sname); getar(str,cfg.sub[i]->op_arstr); break; case 9: - uifc.savnum=2; sprintf(str,"%s Moderated Posting User",cfg.sub[i]->sname); getar(str,cfg.sub[i]->mod_arstr); break; @@ -463,7 +454,6 @@ CRCs is reached, the oldest CRCs will be automatically purged. ,cfg.sub[i]->misc&SUB_LZH ? "Yes" : "No"); opt[n][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Sub-board Toggle Options: @@ -475,7 +465,6 @@ sub-board between two or more settings, such as Yes and No. ,"Toggle Options",opt); if(n==-1) break; - uifc.savnum=3; switch(n) { case 0: if(cfg.sub[i]->misc&SUB_PONLY) @@ -926,7 +915,6 @@ compatible mail programs you use support the LZH translation. ,smb_faddrtoa(&cfg.sub[i]->faddr,tmp)); sprintf(opt[n++],"EchoMail Origin Line"); opt[n][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Sub-board Network Options: @@ -938,7 +926,6 @@ specifically to message networking. ,"Network Options",opt); if(n==-1) break; - uifc.savnum=3; switch(n) { case 0: n=0; @@ -1191,7 +1178,6 @@ If this option is blank, the default origin line is used. sprintf(opt[n++],"%-27.27s%.40s","Semaphore File",cfg.sub[i]->post_sem); sprintf(opt[n++],"%-27.27s%u","Pointer File Index",cfg.sub[i]->ptridx); opt[n][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Sub-board Advanced Options: @@ -1203,7 +1189,6 @@ in nature. ,"Advanced Options",opt); if(n==-1) break; - uifc.savnum=3; switch(n) { case 0: SETHELP(WHERE); diff --git a/src/sbbs3/scfg/scfgsys.c b/src/sbbs3/scfg/scfgsys.c index a91d9ea6add36cd00abff0afe22989cc53c4f45a..d071c5294290f4cdd044df057e8ce24deb4bed11 100644 --- a/src/sbbs3/scfg/scfgsys.c +++ b/src/sbbs3/scfg/scfgsys.c @@ -267,7 +267,6 @@ be able to logon as New, leave this option blank. sprintf(opt[i++],"%-33.33s%s","Display Node List During Logon" ,cfg.sys_misc&SM_NONODELIST ? "No" : "Yes"); opt[i][0]=0; - uifc.savnum=0; SETHELP(WHERE); /* System Toggle Options: @@ -833,7 +832,6 @@ This is the number of extra minutes automatically given to new users. strcpy(opt[i],cfg.xedit[i-1]->code); opt[i][0]=0; i=0; - uifc.savnum=0; SETHELP(WHERE); /* New User Editor: @@ -854,7 +852,6 @@ You can use this option to select the default editor for new users. sprintf(opt[i],"%-.8s",cfg.shell[i]->code); opt[i][0]=0; i=0; - uifc.savnum=0; SETHELP(WHERE); /* New User Command Shell: @@ -1149,7 +1146,6 @@ user. sprintf(opt[i++],"%-27.27s%lX","Control Key Pass-through" ,cfg.ctrlkey_passthru); opt[i][0]=0; - uifc.savnum=0; SETHELP(WHERE); /* System Advanced Options: @@ -1448,7 +1444,6 @@ If unsure, leave this value set to `0`, the default. sprintf(opt[i++],"%-16.16s%s","New User Event",cfg.newuser_mod); sprintf(opt[i++],"%-16.16s%s","Expired User",cfg.expire_mod); opt[i][0]=0; - uifc.savnum=0; SETHELP(WHERE); /* Loadable Modules: @@ -1566,7 +1561,6 @@ security level from 0 to 99. The available options for each level are: ,cfg.level_misc[i]&(LEVEL_EXPTOVAL|LEVEL_EXPTOLVL) ? cfg.level_expireto[i] : cfg.expired_level); opt[j][0]=0; - uifc.savnum=0; j=uifc.list(WIN_RHT|WIN_SAV|WIN_ACT,2,1,0,&k,0 ,str,opt); if(j==-1) @@ -1634,7 +1628,6 @@ security level from 0 to 99. The available options for each level are: opt[j][0]=0; j=0; sprintf(str,"Level %u Expires To",i); - uifc.savnum=1; j=uifc.list(WIN_SAV,2,1,0,&j,0 ,str,opt); if(j==-1) @@ -1819,13 +1812,11 @@ From within the User Edit function, a sysop can use the Validate User command and select from this quick-validation list to change a user's security values with very few key-strokes. */ - uifc.savnum=0; i=uifc.list(WIN_RHT|WIN_BOT|WIN_ACT|WIN_SAV,0,0,0,&dflt,0 ,"Quick-Validation Values",opt); if(i==-1) break; sprintf(str,"Quick-Validation Set %d",i); - uifc.savnum=0; while(1) { j=0; sprintf(opt[j++],"%-22.22s%u","Level",cfg.val_level[i]); @@ -1846,7 +1837,6 @@ user's security values with very few key-strokes. sprintf(opt[j++],"%-22.22s%lu","Additional Credits" ,cfg.val_cdt[i]); opt[j][0]=0; - uifc.savnum=1; j=uifc.list(WIN_RHT|WIN_SAV|WIN_ACT,2,1,0,&k,0 ,str,opt); if(j==-1) diff --git a/src/sbbs3/scfg/scfgxfr1.c b/src/sbbs3/scfg/scfgxfr1.c index 81ca501b30509a99af5d1afef1bfaaf415b5fbb8..e43984cd81dc3846a669605135f57173fb81e1f4 100644 --- a/src/sbbs3/scfg/scfgxfr1.c +++ b/src/sbbs3/scfg/scfgxfr1.c @@ -221,7 +221,6 @@ on the estimated CPS of the connection result code), then a leech protocol error is issued and the user's leech download counter is incremented. Setting this value to 0 disables leech protocol detection. */ - uifc.savnum=0; uifc.input(WIN_MID|WIN_SAV,0,0 ,"Leech Protocol Detection Percentage (0=Disabled)" ,ultoa(cfg.leech_pct,tmp,10),3,K_EDIT|K_NUMBER); @@ -254,7 +253,6 @@ considered a possible leech attempt. i|=WIN_DEL|WIN_GET; if(savfview.cmd[0]) i|=WIN_PUT; - uifc.savnum=0; SETHELP(WHERE); /* Viewable File Types: @@ -325,7 +323,6 @@ command line examples for a few file types. sprintf(opt[j++],"%-22.22s%s","Access Requirements" ,cfg.fview[i]->arstr); opt[j][0]=0; - uifc.savnum=1; switch(uifc.list(WIN_RHT|WIN_BOT|WIN_SAV|WIN_ACT,0,0,0,&fview_opt,0 ,"Viewable File Type",opt)) { case -1: @@ -342,7 +339,6 @@ command line examples for a few file types. ,cfg.fview[i]->cmd,sizeof(cfg.fview[i]->cmd)-1,K_EDIT); break; case 2: - uifc.savnum=2; sprintf(str,"Viewable File Type %s" ,cfg.fview[i]->ext); getar(str,cfg.fview[i]->arstr); @@ -360,7 +356,6 @@ command line examples for a few file types. i|=WIN_DEL|WIN_GET; if(savftest.cmd[0]) i|=WIN_PUT; - uifc.savnum=0; SETHELP(WHERE); /* Testable File Types: @@ -444,7 +439,6 @@ listed. sprintf(opt[j++],"%-22.22s%s","Access Requirements" ,cfg.ftest[i]->arstr); opt[j][0]=0; - uifc.savnum=1; switch(uifc.list(WIN_RHT|WIN_BOT|WIN_SAV|WIN_ACT,0,0,0,&ftest_opt,0 ,"Testable File Type",opt)) { case -1: @@ -466,7 +460,6 @@ listed. ,cfg.ftest[i]->workstr,sizeof(cfg.ftest[i]->workstr)-1,K_EDIT|K_MSG); break; case 3: - uifc.savnum=2; sprintf(str,"Testable File Type %s",cfg.ftest[i]->ext); getar(str,cfg.ftest[i]->arstr); break; } } } @@ -483,7 +476,6 @@ listed. i|=WIN_DEL|WIN_GET; if(savdlevent.cmd[0]) i|=WIN_PUT; - uifc.savnum=0; SETHELP(WHERE); /* Download Events: @@ -566,7 +558,6 @@ for each file type and command line listed. sprintf(opt[j++],"%-22.22s%s","Access Requirements" ,cfg.dlevent[i]->arstr); opt[j][0]=0; - uifc.savnum=1; switch(uifc.list(WIN_RHT|WIN_BOT|WIN_SAV|WIN_ACT,0,0,0,&dlevent_opt,0 ,"Download Event",opt)) { case -1: @@ -588,7 +579,6 @@ for each file type and command line listed. ,cfg.dlevent[i]->workstr,sizeof(cfg.dlevent[i]->workstr)-1,K_EDIT|K_MSG); break; case 3: - uifc.savnum=2; sprintf(str,"Download Event %s",cfg.dlevent[i]->ext); getar(str,cfg.dlevent[i]->arstr); break; } } } @@ -606,7 +596,6 @@ for each file type and command line listed. i|=WIN_DEL|WIN_GET; if(savfextr.cmd[0]) i|=WIN_PUT; - uifc.savnum=0; SETHELP(WHERE); /* Extractable File Types: @@ -679,7 +668,6 @@ extract the file(s). sprintf(opt[j++],"%-22.22s%s","Access Requirements" ,cfg.fextr[i]->arstr); opt[j][0]=0; - uifc.savnum=1; switch(uifc.list(WIN_RHT|WIN_BOT|WIN_SAV|WIN_ACT,0,0,0,&fextr_opt,0 ,"Extractable File Type",opt)) { case -1: @@ -696,7 +684,6 @@ extract the file(s). ,cfg.fextr[i]->cmd,sizeof(cfg.fextr[i]->cmd)-1,K_EDIT); break; case 2: - uifc.savnum=2; sprintf(str,"Extractable File Type %s" ,cfg.fextr[i]->ext); getar(str,cfg.fextr[i]->arstr); @@ -714,7 +701,6 @@ extract the file(s). i|=WIN_DEL|WIN_GET; if(savfcomp.cmd[0]) i|=WIN_PUT; - uifc.savnum=0; SETHELP(WHERE); /* Compressable File Types: @@ -785,7 +771,6 @@ files from the transfer section, and more. sprintf(opt[j++],"%-22.22s%s","Access Requirements" ,cfg.fcomp[i]->arstr); opt[j][0]=0; - uifc.savnum=1; switch(uifc.list(WIN_RHT|WIN_BOT|WIN_SAV|WIN_ACT,0,0,0,&fcomp_opt,0 ,"Compressable File Type",opt)) { case -1: @@ -802,7 +787,6 @@ files from the transfer section, and more. ,cfg.fcomp[i]->cmd,sizeof(cfg.fcomp[i]->cmd)-1,K_EDIT); break; case 2: - uifc.savnum=2; sprintf(str,"Compressable File Type %s" ,cfg.fcomp[i]->ext); getar(str,cfg.fcomp[i]->arstr); @@ -821,7 +805,6 @@ files from the transfer section, and more. i|=WIN_DEL|WIN_GET; if(savprot.mnemonic) i|=WIN_PUT; - uifc.savnum=0; SETHELP(WHERE); /* File Transfer Protocols: @@ -910,7 +893,6 @@ command line for that method blank. sprintf(opt[j++],"%-30.30s%s", "Supports DSZLOG" ,cfg.prot[i]->misc&PROT_DSZLOG ? "Yes":"No"); opt[j][0]=0; - uifc.savnum=1; switch(uifc.list(WIN_RHT|WIN_BOT|WIN_SAV|WIN_ACT,0,0,70,&prot_opt,0 ,"File Transfer Protocol",opt)) { case -1: @@ -931,7 +913,6 @@ command line for that method blank. ,cfg.prot[i]->name,sizeof(cfg.prot[i]->name)-1,K_EDIT); break; case 2: - uifc.savnum=2; sprintf(str,"Protocol %s",cfg.prot[i]->name); getar(str,cfg.prot[i]->arstr); break; @@ -965,7 +946,6 @@ command line for that method blank. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; l=uifc.list(WIN_MID|WIN_SAV,0,0,0,&l,0 ,"Native (32-bit) Executable",opt); if((l==0 && !(cfg.prot[i]->misc&PROT_NATIVE)) @@ -979,7 +959,6 @@ command line for that method blank. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; l=uifc.list(WIN_MID|WIN_SAV,0,0,0,&l,0 ,"Uses DSZLOG",opt); if((l==0 && !(cfg.prot[i]->misc&PROT_DSZLOG)) @@ -1004,7 +983,6 @@ command line for that method blank. i|=WIN_DEL|WIN_GET; if(savaltpath[0]) i|=WIN_PUT; - uifc.savnum=0; SETHELP(WHERE); /* Alternate File Paths: diff --git a/src/sbbs3/scfg/scfgxfr2.c b/src/sbbs3/scfg/scfgxfr2.c index f3e9fdd69f4d40ad3adcc8a9e74cc6bdf5d4d7f8..f25475f31b14f29a8eee5263c7613d834df1e8bf 100644 --- a/src/sbbs3/scfg/scfgxfr2.c +++ b/src/sbbs3/scfg/scfgxfr2.c @@ -204,7 +204,6 @@ library, select Yes. strcpy(opt[j++],"Import Areas..."); strcpy(opt[j++],"File Directories..."); opt[j][0]=0; - uifc.savnum=0; sprintf(str,"%s Library",cfg.lib[i]->sname); SETHELP(WHERE); /* @@ -615,7 +614,6 @@ while(1) { dirnum[j]=cfg.total_dirs; opt[j][0]=0; sprintf(str,"%s Directories",cfg.lib[libnum]->sname); - uifc.savnum=0; i=WIN_SAV|WIN_ACT; if(j) i|=WIN_DEL|WIN_GET|WIN_DELACT; @@ -638,7 +636,6 @@ To delete a directory, select it with the arrow keys and hit DEL . To configure a directory, select it with the arrow keys and hit ENTER . */ i=uifc.list(i,24,1,45,&dflt,&bar,str,opt); - uifc.savnum=1; if((signed)i==-1) return; if((i&MSK_ON)==MSK_INS) { @@ -811,7 +808,6 @@ select Yes. This menu allows you to configure the individual selected directory. Options with a trailing ... provide a sub-menu of more options. */ - uifc.savnum=1; switch(uifc.list(WIN_SAV|WIN_ACT|WIN_RHT|WIN_BOT ,0,0,60,&opt_dflt,0,str,opt)) { case -1: @@ -862,27 +858,22 @@ contents, usually an abreviation of the directory's name. } break; case 3: - uifc.savnum=2; sprintf(str,"%s Access",cfg.dir[i]->sname); getar(str,cfg.dir[i]->arstr); break; case 4: - uifc.savnum=2; sprintf(str,"%s Upload",cfg.dir[i]->sname); getar(str,cfg.dir[i]->ul_arstr); break; case 5: - uifc.savnum=2; sprintf(str,"%s Download",cfg.dir[i]->sname); getar(str,cfg.dir[i]->dl_arstr); break; case 6: - uifc.savnum=2; sprintf(str,"%s Operator",cfg.dir[i]->sname); getar(str,cfg.dir[i]->op_arstr); break; case 7: - uifc.savnum=2; sprintf(str,"%s Exemption",cfg.dir[i]->sname); getar(str,cfg.dir[i]->ex_arstr); break; @@ -1020,7 +1011,6 @@ are later downloaded, set this value to 0. sprintf(opt[n++],"%-27.27s%s","Include Transfers In Stats" ,cfg.dir[i]->misc&DIR_NOSTAT ? "No":"Yes"); opt[n][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Directory Toggle Options: @@ -1034,7 +1024,6 @@ more states, such as Yes and No. ,&tog_bar,"Toggle Options",opt); if(n==-1) break; - uifc.savnum=3; switch(n) { case 0: n=cfg.dir[i]->misc&DIR_FCHK ? 0:1; @@ -1522,7 +1511,6 @@ cumulative statistics. : cfg.dir[i]->sort==SORT_DATE_A ? "Date Ascending" : "Date Descending"); opt[n][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Directory Advanced Options: @@ -1533,7 +1521,6 @@ This is the advanced options menu for the selected file directory. ,"Advanced Options",opt); if(n==-1) break; - uifc.savnum=3; switch(n) { case 0: SETHELP(WHERE); diff --git a/src/sbbs3/scfg/scfgxtrn.c b/src/sbbs3/scfg/scfgxtrn.c index 4806ac37aecf4446d41e857bb1c6b767b0c99ec3..8e64e9ba3c4ded8b43849323ab54dd2a832bcbd6 100644 --- a/src/sbbs3/scfg/scfgxtrn.c +++ b/src/sbbs3/scfg/scfgxtrn.c @@ -219,7 +219,6 @@ while(1) { sprintf(opt[i++],"%-32.32s%.40s","Logout Event",cfg.sys_logout); sprintf(opt[i++],"%-32.32s%.40s","Daily Event",cfg.sys_daily); opt[i][0]=0; - uifc.savnum=0; SETHELP(WHERE); /* External Events: @@ -289,7 +288,6 @@ while(1) { sprintf(opt[i],"%-8.8s %.50s",cfg.event[i]->code,cfg.event[i]->cmd); opt[i][0]=0; j=WIN_SAV|WIN_ACT|WIN_CHE|WIN_RHT; - uifc.savnum=0; if(cfg.total_events) j|=WIN_DEL|WIN_GET; if(cfg.total_events<MAX_OPTS) @@ -402,7 +400,6 @@ If you need the BBS to swap out of memory for this event (to make more available memory), add the program name (first word of the command line) to Global Swap List from the External Programs menu. */ - uifc.savnum=1; sprintf(str,"%s Timed Event",cfg.event[i]->code); switch(uifc.list(WIN_SAV|WIN_ACT|WIN_L2R|WIN_BOT,0,0,70,&dfltopt,0 ,str,opt)) { @@ -461,7 +458,6 @@ This is the command line to execute upon this timed event. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* `Event Enabled:` @@ -519,7 +515,6 @@ the month. strcpy(opt[k++],"All"); strcpy(opt[k++],"None"); opt[k][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Days of Week to Execute Event: @@ -547,7 +542,6 @@ These are the days of the week that this event will be executed. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Execute Event at a Specific Time: @@ -602,7 +596,6 @@ per day. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Exclusive Event Execution: @@ -624,7 +617,6 @@ option to Yes. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Force Users Off-line for Event: @@ -647,7 +639,6 @@ execute precisely on time, set this option to Yes. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Native (32-bit) Executable: @@ -672,7 +663,6 @@ set this option to Yes. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* `Use Shell to Execute Command:` @@ -697,7 +687,6 @@ shell script or DOS batch file), set this option to ~Yes~. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Execute Event in Background (Asynchronously): @@ -722,7 +711,6 @@ set this option to Yes. Exclusive events will not run in the background. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* `Always Run After Initialization or Re-initialization:` @@ -762,7 +750,6 @@ while(1) { xtrnnum[j++]=i; } xtrnnum[j]=cfg.total_xtrns; opt[j][0]=0; - uifc.savnum=2; i=WIN_ACT|WIN_CHE|WIN_SAV|WIN_RHT; if(j) i|=WIN_DEL|WIN_GET; @@ -924,7 +911,6 @@ online program name. ,cfg.xtrn[i]->misc&STARTUPDIR ? "Start-Up Directory":"Node Directory"); sprintf(opt[k++],"Time Options..."); opt[k][0]=0; - uifc.savnum=3; SETHELP(WHERE); /* Online Program Configuration: @@ -1021,12 +1007,10 @@ online program to be free, set this value to 0. cfg.xtrn[i]->cost=atol(str); break; case 6: - uifc.savnum=4; sprintf(str,"%s Access",cfg.xtrn[i]->name); getar(str,cfg.xtrn[i]->arstr); break; case 7: - uifc.savnum=4; sprintf(str,"%s Execution",cfg.xtrn[i]->name); getar(str,cfg.xtrn[i]->run_arstr); break; @@ -1042,7 +1026,6 @@ online program to be free, set this value to 0. If this online program supports multiple simultaneous users (nodes), set this option to Yes. */ - uifc.savnum=4; k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0,"Supports Multiple Users" ,opt); if(!k && !(cfg.xtrn[i]->misc&MULTIUSER)) { @@ -1064,7 +1047,6 @@ set this option to Yes. If this online program uses a FOSSIL driver or SOCKET communications, set this option to No. */ - uifc.savnum=4; k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0,"Intercept Standard I/O" ,opt); if(!k && !(cfg.xtrn[i]->misc&IO_INTS)) { @@ -1085,7 +1067,6 @@ set this option to No. If this program was written for use exclusively under WWIV, set this option to Yes. */ - uifc.savnum=4; k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0 ,"Program Uses WWIV Color Codes" ,opt); @@ -1103,7 +1084,6 @@ option to Yes. If you want the BBS to copy ("echo") all keyboard input to the screen output, set this option to ~Yes~ (for native Win32 programs only). */ - uifc.savnum=4; k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0 ,"Echo Keyboard Input" ,opt); @@ -1127,7 +1107,6 @@ output, set this option to ~Yes~ (for native Win32 programs only). If this online program is a native 32-bit executable, set this option to Yes. */ - uifc.savnum=4; k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0 ,"Native (32-bit)",opt); if(!k && !(cfg.xtrn[i]->misc&XTRN_NATIVE)) { @@ -1149,7 +1128,6 @@ set this option to Yes. If this command-line requires the system command shell to execute, (Unix shell script or DOS batch file), set this option to ~Yes~. */ - uifc.savnum=4; k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0 ,"Use Shell",opt); if(!k && !(cfg.xtrn[i]->misc&XTRN_SH)) { @@ -1174,7 +1152,6 @@ If this online programs recognizes the Synchronet MODUSER.DAT format or the RBBS/QuickBBS EXITINFO.BBS format and you want it to be able to modify the data of users who run the program, set this option to Yes. */ - uifc.savnum=4; k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0 ,"Program Can Modify User Data",opt); if(!k && !(cfg.xtrn[i]->misc&MODUSERDAT)) { @@ -1203,7 +1180,6 @@ modify the data of users who run the program, set this option to Yes. If you would like this online program to automatically execute on a specific user event, select the event. Otherwise, select No. */ - uifc.savnum=4; k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0 ,"Execute on Event",opt); if(k==-1) @@ -1225,7 +1201,6 @@ If you would like this online program to execute as an event only (not available to users on the online program menu), set this option to Yes. */ - uifc.savnum=4; k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k ,0,"Execute as Event Only" ,opt); @@ -1251,7 +1226,6 @@ Set this option to ~Yes~ if you would like an automatic screen pause This can be useful if the program displays information just before exiting or you want to debug a program with a program not running correctly. */ - uifc.savnum=4; k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0 ,"Pause After Execution",opt); if((!k && !(cfg.xtrn[i]->misc&XTRN_PAUSE)) @@ -1284,7 +1258,6 @@ or you want to debug a program with a program not running correctly. If this online program requires a specific BBS data (drop) file format, select the file format from the list. */ - uifc.savnum=4; k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0 ,"BBS Drop File Type",opt); if(k==-1) @@ -1336,7 +1309,6 @@ format, select the file format from the list. You can have the data file created in the current Node Directory or the Start-up Directory (if one is specified). */ - uifc.savnum=4; k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0,"Create Drop File In" ,opt); if(!k && cfg.xtrn[i]->misc&STARTUPDIR) { @@ -1371,13 +1343,11 @@ You can have the data file created in the current Node Directory or the This sub-menu allows you to define specific preferences regarding the time users spend running this program. */ - uifc.savnum=4; k=uifc.list(WIN_SAV|WIN_ACT|WIN_RHT|WIN_BOT,0,0,40 ,&time_dflt,0 ,"Online Program Time Options",opt); if(k==-1) break; - uifc.savnum=5; switch(k) { case 0: ultoa(cfg.xtrn[i]->textra,str,10); @@ -1474,7 +1444,6 @@ while(1) { sprintf(opt[i],"%-8.8s %.40s",cfg.xedit[i]->code,cfg.xedit[i]->rcmd); opt[i][0]=0; j=WIN_SAV|WIN_ACT|WIN_CHE|WIN_RHT; - uifc.savnum=0; if(cfg.total_xedits) j|=WIN_DEL|WIN_GET; if(cfg.total_xedits<MAX_OPTS) @@ -1597,7 +1566,6 @@ popular editors include SyncEdit, WWIVedit, FEdit, GEdit, IceEdit, and many others. */ - uifc.savnum=1; sprintf(str,"%s Editor",cfg.xedit[i]->name); switch(uifc.list(WIN_SAV|WIN_ACT|WIN_L2R|WIN_BOT,0,0,70,&dfltopt,0 ,str,opt)) { @@ -1646,7 +1614,6 @@ This is the command line to execute when using this editor remotely. ,cfg.xedit[i]->rcmd,sizeof(cfg.xedit[i]->rcmd)-1,K_EDIT); break; case 3: - uifc.savnum=2; sprintf(str,"%s External Editor",cfg.xedit[i]->name); getar(str,cfg.xedit[i]->arstr); break; @@ -1655,7 +1622,6 @@ This is the command line to execute when using this editor remotely. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Intercept Standard I/O: @@ -1677,7 +1643,6 @@ set this option to No. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Editor Uses WWIV Color Codes: @@ -1705,7 +1670,6 @@ option to Yes. If this editor is a native 32-bit executable, set this option to Yes. */ - uifc.savnum=2; k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0 ,"Native (32-bit)",opt); if(!k && !(cfg.xedit[i]->misc&XTRN_NATIVE)) { @@ -1727,7 +1691,6 @@ If this editor is a native 32-bit executable, set this option to Yes. If this command-line requires the system command shell to execute, (Unix shell script or DOS batch file), set this option to ~Yes~. */ - uifc.savnum=2; k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0 ,"Use Shell",opt); if(!k && !(cfg.xedit[i]->misc&XTRN_SH)) { @@ -1744,7 +1707,6 @@ shell script or DOS batch file), set this option to ~Yes~. strcpy(opt[1],"None"); strcpy(opt[2],"Prompt User"); opt[3][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Quoted Text: @@ -1778,7 +1740,6 @@ drop file (like SyncEdit v2.x). strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* QuickBBS Style (MSGTMP): @@ -1800,7 +1761,6 @@ this option to Yes. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Expand Line Feeds to Carriage Return/Line Feed Pairs: @@ -1822,7 +1782,6 @@ instead of a carriage return/line feed pair, set this option to Yes. strcpy(opt[0],"Yes"); strcpy(opt[1],"No"); opt[2][0]=0; - uifc.savnum=2; SETHELP(WHERE); /* Strip FidoNet Kludge Lines From Messages: @@ -1864,7 +1823,6 @@ set this option to Yes to strip those lines from the message. If this external editor requires a specific BBS data (drop) file format, select the file format from the list. */ - uifc.savnum=2; k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0 ,"BBS Drop File Type",opt); if(k==-1) @@ -1907,7 +1865,6 @@ while(1) { sprintf(opt[i],"%-12s",cfg.natvpgm[i]->name); opt[i][0]=0; j=WIN_ACT|WIN_CHE|WIN_L2R|WIN_SAV; - uifc.savnum=0; if(cfg.total_natvpgms) j|=WIN_DEL; if(cfg.total_natvpgms<MAX_OPTS) @@ -1992,7 +1949,6 @@ while(1) { sprintf(opt[i],"%-25s",cfg.xtrnsec[i]->name); opt[i][0]=0; j=WIN_SAV|WIN_ACT|WIN_CHE|WIN_BOT; - uifc.savnum=0; if(cfg.total_xtrnsecs) j|=WIN_DEL|WIN_GET; if(cfg.total_xtrnsecs<MAX_OPTS) @@ -2108,7 +2064,6 @@ abreviation of the name. ,cfg.xtrnsec[i]->arstr); sprintf(opt[k++],"%s","Available Online Programs..."); opt[k][0]=0; - uifc.savnum=1; sprintf(str,"%s Program Section",cfg.xtrnsec[i]->name); switch(uifc.list(WIN_SAV|WIN_ACT|WIN_MID,0,0,60,&xtrnsec_opt,0,str ,opt)) { @@ -2174,7 +2129,6 @@ while(1) { ,cfg.hotkey[i]->cmd); opt[i][0]=0; j=WIN_SAV|WIN_ACT|WIN_CHE|WIN_RHT; - uifc.savnum=0; if(cfg.total_hotkeys) j|=WIN_DEL|WIN_GET; if(cfg.total_hotkeys<MAX_OPTS) @@ -2259,7 +2213,6 @@ This menu allows you to change the settings for the selected global hot key event. Hot key events are control characters that are used to execute an external program or module anywhere in the BBS. */ - uifc.savnum=1; sprintf(str,"Ctrl-%c Hot Key Event",cfg.hotkey[i]->key+'@'); switch(uifc.list(WIN_SAV|WIN_ACT|WIN_L2R|WIN_BOT,0,0,60,&dfltopt,0 ,str,opt)) {