Commit b19fee44 authored by rswindell's avatar rswindell
Browse files

Moved rerun_nodes() to sbbs3/scfgsave.c and renamed to refresh_cfg().

parent e4c2ee91
......@@ -83,7 +83,7 @@ directories for a more organized file structure.
continue;
if(!j) {
write_file_cfg(&cfg,backup_level);
rerun_nodes();
refresh_cfg(&cfg);
}
return; }
if((i&MSK_ON)==MSK_INS) {
......
......@@ -394,7 +394,7 @@ Use the arrow keys and  ENTER  to select an option, or  ESC  to exit.
continue;
if(!j) {
write_chat_cfg(&cfg,backup_level);
rerun_nodes();
refresh_cfg(&cfg);
}
break;
}
......@@ -556,32 +556,6 @@ if(i!=-1)
return(i);
}
void rerun_nodes()
{
char str[MAX_PATH+1];
int i;
int file;
node_t node;
for(i=0;i<cfg.sys_nodes;i++) {
if(getnodedat(&cfg,i+1,&node,&file))
break;
node.misc|=NODE_RRUN;
if(putnodedat(&cfg,i+1,&node,file))
break;
}
sprintf(str,"%sftpsrvr.rec",cfg.ctrl_dir);
if((file=open(str,O_WRONLY|O_CREAT|O_TRUNC,S_IWRITE|S_IREAD))!=-1)
close(file);
sprintf(str,"%smailsrvr.rec",cfg.ctrl_dir);
if((file=open(str,O_WRONLY|O_CREAT|O_TRUNC,S_IWRITE|S_IREAD))!=-1)
close(file);
sprintf(str,"%sservices.rec",cfg.ctrl_dir);
if((file=open(str,O_WRONLY|O_CREAT|O_TRUNC,S_IWRITE|S_IREAD))!=-1)
close(file);
}
void txt_cfg()
{
static int txt_dflt,bar;
......@@ -625,7 +599,7 @@ To configure a text file, select it and hit  ENTER .
continue;
if(!j) {
write_file_cfg(&cfg,backup_level);
rerun_nodes();
refresh_cfg(&cfg);
}
return;
}
......@@ -790,7 +764,7 @@ To configure a command shell, select it and hit  ENTER .
continue;
if(!j) {
write_main_cfg(&cfg,backup_level);
rerun_nodes();
refresh_cfg(&cfg);
}
return;
}
......
......@@ -77,7 +77,6 @@ void bail(int code);
void errormsg(int line, char *source, char action, char *object, ulong access);
void clearptrs(int subnum);
int save_changes(int mode);
void rerun_nodes(void);
void node_menu(void);
void node_cfg(void);
void results(int i);
......
......@@ -175,7 +175,7 @@ those sub-boards for a more organized message structure.
continue;
if(!j) {
write_msgs_cfg(&cfg,backup_level);
rerun_nodes();
refresh_cfg(&cfg);
}
return;
}
......@@ -816,7 +816,7 @@ E-mail and public posts (on sub-boards).
if(!i) {
write_msgs_cfg(&cfg,backup_level);
write_main_cfg(&cfg,backup_level);
rerun_nodes();
refresh_cfg(&cfg);
}
return;
case 0:
......
......@@ -930,7 +930,7 @@ value to 0.
continue;
if(!i) {
write_msgs_cfg(&cfg,backup_level);
rerun_nodes();
refresh_cfg(&cfg);
}
break;
}
......
......@@ -94,7 +94,7 @@ select No or hit  ESC .
--cfg.sys_nodes;
/* FREE(cfg.node_path[cfg.sys_nodes]); */
write_main_cfg(&cfg,backup_level);
rerun_nodes();
refresh_cfg(&cfg);
}
continue; }
if((i&MSK_ON)==MSK_INS) {
......@@ -132,7 +132,7 @@ If you want to abort the creation of this new node, hit  ESC .
write_node_cfg(&cfg,backup_level);
write_main_cfg(&cfg,backup_level);
free_node_cfg(&cfg);
rerun_nodes();
refresh_cfg(&cfg);
continue;
}
if((i&MSK_ON)==MSK_GET) {
......@@ -150,7 +150,7 @@ If you want to abort the creation of this new node, hit  ESC .
strcpy(cfg.node_dir,cfg.node_path[i]);
cfg.node_num=i+1;
write_node_cfg(&cfg,backup_level);
rerun_nodes();
refresh_cfg(&cfg);
uifc.changes=1;
continue;
}
......@@ -201,7 +201,7 @@ Options with a trailing ... will produce a sub-menu of more options.
i=save_changes(WIN_MID|WIN_SAV);
if(!i) {
write_node_cfg(&cfg,backup_level);
rerun_nodes();
refresh_cfg(&cfg);
}
if(i!=-1)
return;
......
......@@ -88,7 +88,7 @@ entire system.
break;
if(!i) {
write_main_cfg(&cfg,backup_level);
rerun_nodes();
refresh_cfg(&cfg);
}
return;
case 0:
......
......@@ -93,7 +93,7 @@ file transfer section of the BBS.
break;
if(!i) {
write_file_cfg(&cfg,backup_level);
rerun_nodes();
refresh_cfg(&cfg);
}
return;
case 0:
......
......@@ -83,7 +83,7 @@ directories for a more organized file structure.
continue;
if(!j) {
write_file_cfg(&cfg,backup_level);
rerun_nodes();
refresh_cfg(&cfg);
}
return; }
if((i&MSK_ON)==MSK_INS) {
......
......@@ -184,7 +184,7 @@ online external programs (doors).
if(!i) {
write_xtrn_cfg(&cfg,backup_level);
write_main_cfg(&cfg,backup_level);
rerun_nodes();
refresh_cfg(&cfg);
}
return;
case 0:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment