Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
8d8ee163
Commit
8d8ee163
authored
May 02, 2019
by
rswindell
Browse files
Restore accidentally removal of strchr (!).
parent
4fc5b9a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/sbbs3/getmsg.cpp
src/sbbs3/getmsg.cpp
+3
-3
No files found.
src/sbbs3/getmsg.cpp
View file @
8d8ee163
...
...
@@ -146,18 +146,18 @@ void sbbs_t::show_msghdr(smb_t* smb, smbmsg_t* msg, const char* subject, const c
bprintf
(
text
[
MsgTags
],
msg
->
tags
);
if
(
msg
->
hdr
.
attr
)
show_msgattr
(
msg
);
if
(
to
!=
NULL
||
msg
->
to_list
!=
NULL
||
(
msg
->
to
&&
*
msg
->
to
))
{
if
(
to
!=
NULL
||
msg
->
to_list
!=
NULL
||
(
msg
->
to
&&
*
msg
->
to
))
{
bprintf
(
text
[
MsgTo
],
to
==
NULL
?
(
msg
->
to_list
==
NULL
?
msg
->
to
:
msg
->
to_list
)
:
to
);
if
(
msg
->
to_net
.
addr
!=
NULL
)
bprintf
(
text
[
MsgToNet
],
smb_netaddrstr
(
&
msg
->
to_net
,
str
));
if
(
msg
->
to_ext
)
bprintf
(
text
[
MsgToExt
],
msg
->
to_ext
);
}
if
(
from
!=
NULL
||
msg
->
from
!=
NULL
&&
(
!
(
msg
->
hdr
.
attr
&
MSG_ANONYMOUS
)
||
SYSOP
))
{
if
(
(
from
!=
NULL
||
msg
->
from
!=
NULL
)
&&
(
!
(
msg
->
hdr
.
attr
&
MSG_ANONYMOUS
)
||
SYSOP
))
{
bprintf
(
text
[
MsgFrom
],
from
==
NULL
?
msg
->
from
:
from
);
if
(
msg
->
from_ext
)
bprintf
(
text
[
MsgFromExt
],
msg
->
from_ext
);
if
(
msg
->
from_net
.
addr
!=
NULL
&&
(
msg
->
from
==
NULL
||
(
msg
->
from
,
'@'
)
==
NULL
))
if
(
msg
->
from_net
.
addr
!=
NULL
&&
(
msg
->
from
==
NULL
||
strchr
(
msg
->
from
,
'@'
)
==
NULL
))
bprintf
(
text
[
MsgFromNet
],
smb_netaddrstr
(
&
msg
->
from_net
,
str
));
}
if
(
!
(
msg
->
hdr
.
attr
&
MSG_POLL
)
&&
(
msg
->
upvotes
||
msg
->
downvotes
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment