Skip to content
Snippets Groups Projects
Commit 80c92968 authored by rswindell's avatar rswindell
Browse files

Change to sbbs_t::show_msghdr():

Don't include the to/from network-arddress in the displayed header if the
net-type value is NET_NONE (not a normal/expected combination).
parent f2d9dd37
No related branches found
No related tags found
No related merge requests found
......@@ -140,7 +140,7 @@ void sbbs_t::show_msghdr(smbmsg_t* msg)
show_msgattr(msg->hdr.attr);
bprintf(text[MsgTo],msg->to);
if(msg->to_net.addr)
if(msg->to_net.type!=NET_NONE && msg->to_net.addr!=NULL)
bprintf(text[MsgToNet],smb_netaddrstr(&msg->to_net,str));
if(msg->to_ext)
bprintf(text[MsgToExt],msg->to_ext);
......@@ -148,7 +148,7 @@ void sbbs_t::show_msghdr(smbmsg_t* msg)
bprintf(text[MsgFrom],msg->from);
if(msg->from_ext)
bprintf(text[MsgFromExt],msg->from_ext);
if(msg->from_net.addr && !strchr(msg->from,'@'))
if(msg->from_net.type!=NET_NONE && msg->from_net.addr!=NULL && strchr(msg->from,'@')==NULL)
bprintf(text[MsgFromNet],smb_netaddrstr(&msg->from_net,str));
}
bprintf(text[MsgDate]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment