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

smb_netaddr_type() now skips spaces between the '@' and the address

portion of the e-mail address (e.g. "sysop@ 1:103/705", if included).
parent 48c85175
No related branches found
No related tags found
No related merge requests found
......@@ -297,7 +297,7 @@ char* SMBCALL smb_netaddr(net_t* net)
}
/****************************************************************************/
/* Returns net_type for passing e-mail address (i.e. "user@addr") */
/* Returns net_type for passed e-mail address (i.e. "user@addr") */
/****************************************************************************/
ushort SMBCALL smb_netaddr_type(const char* str)
{
......@@ -308,6 +308,10 @@ ushort SMBCALL smb_netaddr_type(const char* str)
return(NET_NONE);
p++;
SKIP_WHITESPACE(p);
if(*p==0)
return(NET_UNKNOWN);
if(isalpha(*p) && strchr(p,'.')==NULL)
return(NET_QWK);
......
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