Skip to content
Snippets Groups Projects
Commit 4446c605 authored by deuce's avatar deuce
Browse files

shell: URIs only available under *nix.

parent df7c3c05
No related branches found
No related tags found
No related merge requests found
...@@ -694,11 +694,13 @@ void parse_url(char *url, struct bbslist *bbs, int dflt_conn_type, int force_def ...@@ -694,11 +694,13 @@ void parse_url(char *url, struct bbslist *bbs, int dflt_conn_type, int force_def
bbs->port=conn_ports[bbs->conn_type]; bbs->port=conn_ports[bbs->conn_type];
p1=url+6; p1=url+6;
} }
#ifdef __unix__
else if(!strnicmp("shell:",url,6)) { else if(!strnicmp("shell:",url,6)) {
bbs->conn_type=CONN_TYPE_SHELL; bbs->conn_type=CONN_TYPE_SHELL;
bbs->port=conn_ports[bbs->conn_type]; bbs->port=conn_ports[bbs->conn_type];
p1=url+6; p1=url+6;
} }
#endif
/* ToDo: RFC2806 */ /* ToDo: RFC2806 */
/* Remove trailing / (Win32 adds one 'cause it hates me) */ /* Remove trailing / (Win32 adds one 'cause it hates me) */
p2=strchr(p1,'/'); p2=strchr(p1,'/');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment