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);