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
0cda1e16
Commit
0cda1e16
authored
20 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Using smb_faddrtoa() and support new(er) NET_FIDO_ASCII net type.
parent
d676d34d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/sbbsecho.c
+7
-5
7 additions, 5 deletions
src/sbbs3/sbbsecho.c
with
7 additions
and
5 deletions
src/sbbs3/sbbsecho.c
+
7
−
5
View file @
0cda1e16
...
@@ -1074,11 +1074,11 @@ void alter_config(faddr_t addr, char *old, char *new, int option)
...
@@ -1074,11 +1074,11 @@ void alter_config(faddr_t addr, char *old, char *new, int option)
if
(
option
==
1
&&
!
strcmp
(
tmp
,
"AREAFIX"
))
{
/* Change Password */
if
(
option
==
1
&&
!
strcmp
(
tmp
,
"AREAFIX"
))
{
/* Change Password */
if
(
!*
p
)
if
(
!*
p
)
continue
;
continue
;
taddr
=
atofaddr
(
p
);
taddr
=
smb_
atofaddr
(
&
sys_faddr
,
p
);
if
(
!
memcmp
(
&
cfg
.
nodecfg
[
i
].
faddr
,
&
taddr
,
sizeof
(
faddr_t
)))
{
if
(
!
memcmp
(
&
cfg
.
nodecfg
[
i
].
faddr
,
&
taddr
,
sizeof
(
faddr_t
)))
{
FIND_WHITESPACE
(
p
);
/* Skip over address */
FIND_WHITESPACE
(
p
);
/* Skip over address */
SKIP_WHITESPACE
(
p
);
/* Skip over whitespace */
SKIP_WHITESPACE
(
p
);
/* Skip over whitespace */
FIND_WHITESPACE
(
p
);
/* Skip over password */
FIND_WHITESPACE
(
p
);
/* Skip over password */
SKIP_WHITESPACE
(
p
);
/* Skip over whitespace */
SKIP_WHITESPACE
(
p
);
/* Skip over whitespace */
fprintf
(
outfile
,
"%-10s %s %s %s
\n
"
,
tmp
fprintf
(
outfile
,
"%-10s %s %s %s
\n
"
,
tmp
,
smb_faddrtoa
(
&
cfg
.
nodecfg
[
i
].
faddr
,
NULL
),
new
,
p
);
,
smb_faddrtoa
(
&
cfg
.
nodecfg
[
i
].
faddr
,
NULL
),
new
,
p
);
...
@@ -3653,13 +3653,15 @@ void export_echomail(char *sub_code,faddr_t addr)
...
@@ -3653,13 +3653,15 @@ void export_echomail(char *sub_code,faddr_t addr)
continue
;
}
}
continue
;
}
}
if
((
!
addr
.
zone
&&
!
(
misc
&
EXPORT_ALL
)
if
((
!
addr
.
zone
&&
!
(
misc
&
EXPORT_ALL
)
&&
msg
.
from_net
.
type
==
NET_FIDO
)
&&
(
msg
.
from_net
.
type
==
NET_FIDO
||
msg
.
from_net
.
type
==
NET_FIDO_ASCII
)
)
||
!
strnicmp
(
msg
.
subj
,
"NE:"
,
3
))
{
/* no echo */
||
!
strnicmp
(
msg
.
subj
,
"NE:"
,
3
))
{
/* no echo */
smb_unlockmsghdr
(
&
smb
[
cur_smb
],
&
msg
);
smb_unlockmsghdr
(
&
smb
[
cur_smb
],
&
msg
);
smb_freemsgmem
(
&
msg
);
smb_freemsgmem
(
&
msg
);
continue
;
}
/* From a Fido node, ignore it */
continue
;
}
/* From a Fido node, ignore it */
if
(
msg
.
from_net
.
type
&&
msg
.
from_net
.
type
!=
NET_FIDO
if
(
msg
.
from_net
.
type
!=
NET_NONE
&&
msg
.
from_net
.
type
!=
NET_FIDO
&&
msg
.
from_net
.
type
!=
NET_FIDO_ASCII
&&
!
(
scfg
.
sub
[
i
]
->
misc
&
SUB_GATE
))
{
&&
!
(
scfg
.
sub
[
i
]
->
misc
&
SUB_GATE
))
{
smb_unlockmsghdr
(
&
smb
[
cur_smb
],
&
msg
);
smb_unlockmsghdr
(
&
smb
[
cur_smb
],
&
msg
);
smb_freemsgmem
(
&
msg
);
smb_freemsgmem
(
&
msg
);
...
...
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