}
else {
cprintf("%d %s Citadel server ready.\n", CIT_OK, CtdlGetConfigStr("c_fqdn"));
+ strcpy(CC->cs_clientname, "Citadel client protocol");
CC->can_receive_im = 1;
}
}
int can_receive_im; /* Session is capable of receiving instant messages */
/* Client information */
- int cs_clientdev; /* client developer ID */
- int cs_clienttyp; /* client type code */
- int cs_clientver; /* client version number */
char cs_clientinfo[256];/* if its a unix domain socket, some info for logging. */
uid_t cs_UDSclientUID; /* the uid of the client when talking via UDS */
char cs_clientname[32]; /* name of client software */
FILE *mfp;
char targ[256];
char buf[256];
- char buf2[256];
DIR *dp;
struct dirent *d;
extract_token(buf, mname, 0, '|', sizeof buf);
- snprintf(buf2, sizeof buf2, "%s.%d.%d", buf, CC->cs_clientdev, CC->cs_clienttyp);
-
// If the client requested "?" then produce a listing
if (!strcmp(buf, "?")) {
cprintf("%d %s\n", LISTING_FOLLOWS, buf);
return;
}
- dev_code = extract_int(argbuf,0);
- cli_code = extract_int(argbuf,1);
- rev_level = extract_int(argbuf,2);
extract_token(desc, argbuf, 3, '|', sizeof desc);
safestrncpy(from_host, CtdlGetConfigStr("c_fqdn"), sizeof from_host);
from_host[sizeof from_host - 1] = 0;
if (num_parms(argbuf)>=5) extract_token(from_host, argbuf, 4, '|', sizeof from_host);
- CC->cs_clientdev = dev_code;
- CC->cs_clienttyp = cli_code;
- CC->cs_clientver = rev_level;
safestrncpy(CC->cs_clientname, desc, sizeof CC->cs_clientname);
CC->cs_clientname[31] = 0;