175 |
|
{ |
176 |
|
char capbuf[IRCD_BUFSIZE] = "", pfx[16]; |
177 |
|
char cmdbuf[IRCD_BUFSIZE] = ""; |
178 |
< |
int i, loc, len, flags, pfx_len, clen; |
178 |
> |
unsigned int i, loc, len, flags, pfx_len, clen; |
179 |
|
|
180 |
|
/* set up the buffer for the final LS message... */ |
181 |
|
clen = snprintf(cmdbuf, sizeof(capbuf), ":%s CAP %s %s ", me.name, |
377 |
|
|
378 |
|
static struct subcmd |
379 |
|
{ |
380 |
< |
char *cmd; |
380 |
> |
const char *cmd; |
381 |
|
int (*proc)(struct Client *sptr, const char *caplist); |
382 |
|
} cmdlist[] = { |
383 |
|
{ "ACK", cap_ack }, |
385 |
|
{ "END", cap_end }, |
386 |
|
{ "LIST", cap_list }, |
387 |
|
{ "LS", cap_ls }, |
388 |
< |
{ "NAK", 0 }, |
388 |
> |
{ "NAK", NULL }, |
389 |
|
{ "REQ", cap_req } |
390 |
|
}; |
391 |
|
|