6 struct serv_info serv_info;
9 * get info about the server we've connected to
11 void get_serv_info() {
15 serv_printf("IDEN %d|%d|%d|%s|%s",
20 "" /* FIX find out where the user is */
26 if (buf[0]!='1') return;
29 while(serv_gets(buf), strcmp(buf,"000")) {
31 case 0: serv_info.serv_pid = atoi(buf);
33 case 1: strcpy(serv_info.serv_nodename,buf);
35 case 2: strcpy(serv_info.serv_humannode,buf);
37 case 3: strcpy(serv_info.serv_fqdn,buf);
39 case 4: strcpy(serv_info.serv_software,buf);
41 case 5: serv_info.serv_rev_level = atoi(buf);
43 case 6: strcpy(serv_info.serv_bbs_city,buf);
45 case 7: strcpy(serv_info.serv_sysadm,buf);
47 case 9: strcpy(serv_info.serv_moreprompt,buf);
57 * Function to spit out Citadel variformat text in HTML
58 * If fp is non-null, it is considered to be the file handle to read the
59 * text from. Otherwise, text is read from the server.
70 if (fp==NULL) serv_gets(buf);
72 if (fgets(buf,256,fp)==NULL) strcpy(buf,"000");
73 buf[strlen(buf)-1] = 0;
75 if (!strcmp(buf,"000")) {
76 if (bq==1) wprintf("</I>");
80 if ( (intext==1) && (isspace(buf[0])) ) {
85 /* Quoted text should be displayed in italics and in a
86 * different colour. This code understands both Citadel/UX
87 * style " >" quotes and FordBoard-style " :-)" quotes.
90 ((!strncmp(buf," >",2))||(!strncmp(buf," :-)",4)))) {
91 wprintf("<FONT COLOR=\"000044\"><I>");
95 (strncmp(buf," >",2))&&(strncmp(buf," :-)",4))) {
96 wprintf("</FONT></I>");
100 /* Activate embedded URL's */