Skip to content
Snippets Groups Projects
Commit dbc89e24 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Add support for exporting fidonet sub-boards to areas.ini file

parent eef585ab
No related branches found
No related tags found
No related merge requests found
...@@ -813,6 +813,7 @@ void msgs_cfg() ...@@ -813,6 +813,7 @@ void msgs_cfg()
q=uifc.changes; q=uifc.changes;
strcpy(opt[k++],"subs.txt Synchronet Sub-boards"); strcpy(opt[k++],"subs.txt Synchronet Sub-boards");
strcpy(opt[k++],"areas.bbs SBBSecho Area File"); strcpy(opt[k++],"areas.bbs SBBSecho Area File");
strcpy(opt[k++],"areas.ini SBBSecho Area File");
strcpy(opt[k++],"backbone.na FidoNet EchoList"); strcpy(opt[k++],"backbone.na FidoNet EchoList");
strcpy(opt[k++],"newsgroup.lst USENET Newsgroup List"); strcpy(opt[k++],"newsgroup.lst USENET Newsgroup List");
opt[k][0]=0; opt[k][0]=0;
...@@ -830,6 +831,10 @@ void msgs_cfg() ...@@ -830,6 +831,10 @@ void msgs_cfg()
"`areas.bbs`\n" "`areas.bbs`\n"
" Area File as used by the Synchronet Fido EchoMail program, `SBBSecho`.\n" " Area File as used by the Synchronet Fido EchoMail program, `SBBSecho`.\n"
"\n" "\n"
"`areas.ini`\n"
" Area File as used by the Synchronet Fido EchoMail program, `SBBSecho`\n"
" (optionally, as of SBBSecho v3.23).\n"
"\n"
"`backbone.na` (also `fidonet.na` and `badareas.lst`)\n" "`backbone.na` (also `fidonet.na` and `badareas.lst`)\n"
" FidoNet standard EchoList containing standardized echo `Area Tags`\n" " FidoNet standard EchoList containing standardized echo `Area Tags`\n"
" and (optional) descriptions.\n" " and (optional) descriptions.\n"
...@@ -847,10 +852,12 @@ void msgs_cfg() ...@@ -847,10 +852,12 @@ void msgs_cfg()
else if(k==1) else if(k==1)
sprintf(str,"%sareas.bbs",cfg.data_dir); sprintf(str,"%sareas.bbs",cfg.data_dir);
else if(k==2) else if(k==2)
sprintf(str,"backbone.na"); sprintf(str,"%sareas.ini",cfg.data_dir);
else if(k==3) else if(k==3)
sprintf(str,"backbone.na");
else if(k==4)
sprintf(str,"newsgroup.lst"); sprintf(str,"newsgroup.lst");
if(k==1) { if(k==1 || k ==2) {
uifc.helpbuf= uifc.helpbuf=
"`Links:`\n" "`Links:`\n"
"\n" "\n"
...@@ -914,14 +921,24 @@ void msgs_cfg() ...@@ -914,14 +921,24 @@ void msgs_cfg()
,str2); ,str2);
continue; continue;
} }
if(k==2) { /* BACKBONE.NA */ if(k==2) { /* areas.ini */
fprintf(stream, "[%s]\n"
,sub_area_tag(&cfg, cfg.sub[j], str, sizeof(str)));
fprintf(stream, "sub = %s%s\n"
,cfg.grp[cfg.sub[j]->grp]->code_prefix
,cfg.sub[j]->code_suffix);
fprintf(stream, "links = %s\n", str2);
fprintf(stream,"\n");
continue;
}
if(k==3) { /* BACKBONE.NA */
fprintf(stream,"%-*s %s\n" fprintf(stream,"%-*s %s\n"
,FIDO_AREATAG_LEN ,FIDO_AREATAG_LEN
,sub_area_tag(&cfg, cfg.sub[j], str, sizeof(str)) ,sub_area_tag(&cfg, cfg.sub[j], str, sizeof(str))
,cfg.sub[j]->lname); ,cfg.sub[j]->lname);
continue; continue;
} }
if(k==3) { /* newsgroup.lst */ if(k==4) { /* newsgroup.lst */
fprintf(stream,"%s %s\n" fprintf(stream,"%s %s\n"
,sub_newsgroup_name(&cfg, cfg.sub[j], str, sizeof(str)) ,sub_newsgroup_name(&cfg, cfg.sub[j], str, sizeof(str))
,cfg.sub[j]->lname); ,cfg.sub[j]->lname);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment