Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
dbc89e24
Commit
dbc89e24
authored
2 months ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Add support for exporting fidonet sub-boards to areas.ini file
parent
eef585ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/scfg/scfgmsg.c
+21
-4
21 additions, 4 deletions
src/sbbs3/scfg/scfgmsg.c
with
21 additions
and
4 deletions
src/sbbs3/scfg/scfgmsg.c
+
21
−
4
View file @
dbc89e24
...
...
@@ -813,6 +813,7 @@ void msgs_cfg()
q
=
uifc
.
changes
;
strcpy
(
opt
[
k
++
],
"subs.txt Synchronet Sub-boards"
);
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
++
],
"newsgroup.lst USENET Newsgroup List"
);
opt
[
k
][
0
]
=
0
;
...
...
@@ -830,6 +831,10 @@ void msgs_cfg()
"`areas.bbs`
\n
"
" Area File as used by the Synchronet Fido EchoMail program, `SBBSecho`.
\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
"
" FidoNet standard EchoList containing standardized echo `Area Tags`
\n
"
" and (optional) descriptions.
\n
"
...
...
@@ -847,10 +852,12 @@ void msgs_cfg()
else
if
(
k
==
1
)
sprintf
(
str
,
"%sareas.bbs"
,
cfg
.
data_dir
);
else
if
(
k
==
2
)
sprintf
(
str
,
"
backbone.na"
);
sprintf
(
str
,
"
%sareas.ini"
,
cfg
.
data_dir
);
else
if
(
k
==
3
)
sprintf
(
str
,
"backbone.na"
);
else
if
(
k
==
4
)
sprintf
(
str
,
"newsgroup.lst"
);
if
(
k
==
1
)
{
if
(
k
==
1
||
k
==
2
)
{
uifc
.
helpbuf
=
"`Links:`
\n
"
"
\n
"
...
...
@@ -914,14 +921,24 @@ void msgs_cfg()
,
str2
);
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
"
,
FIDO_AREATAG_LEN
,
sub_area_tag
(
&
cfg
,
cfg
.
sub
[
j
],
str
,
sizeof
(
str
))
,
cfg
.
sub
[
j
]
->
lname
);
continue
;
}
if
(
k
==
3
)
{
/* newsgroup.lst */
if
(
k
==
4
)
{
/* newsgroup.lst */
fprintf
(
stream
,
"%s %s
\n
"
,
sub_newsgroup_name
(
&
cfg
,
cfg
.
sub
[
j
],
str
,
sizeof
(
str
))
,
cfg
.
sub
[
j
]
->
lname
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment