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

Fix network user/address look-up (using qnet/users.dat)

The QWKnet user look-up feature was broken as of commit e4fc5d04 (a year ago).

Just noticed this regression as Andre asked in IRC about looking up network users for netmail. This feature worked for QWKnet users/addresses, at least, and now will work again.
parent 9421957f
No related branches found
No related tags found
No related merge requests found
...@@ -105,11 +105,13 @@ bool sbbs_t::netmail(const char *into, const char *title, long mode, smb_t* resm ...@@ -105,11 +105,13 @@ bool sbbs_t::netmail(const char *into, const char *title, long mode, smb_t* resm
} }
} }
if(*to == '\0' && cc_list != NULL && (*cc_list) != NULL) {
SAFECOPY(to, cc_list[0]);
cc_list++;
}
lookup_netuser(to); lookup_netuser(to);
net_addr = to; net_addr = to;
if(*net_addr == '\0' && cc_list != NULL)
net_addr = cc_list[0];
net_type = smb_netaddr_type(net_addr); net_type = smb_netaddr_type(net_addr);
lprintf(LOG_DEBUG, "parsed net type of '%s' is %s", net_addr, smb_nettype((enum smb_net_type)net_type)); lprintf(LOG_DEBUG, "parsed net type of '%s' is %s", net_addr, smb_nettype((enum smb_net_type)net_type));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment