170 |
{ |
{ |
171 |
char capbuf[IRCD_BUFSIZE] = "", pfx[16]; |
char capbuf[IRCD_BUFSIZE] = "", pfx[16]; |
172 |
char cmdbuf[IRCD_BUFSIZE] = ""; |
char cmdbuf[IRCD_BUFSIZE] = ""; |
173 |
int i, loc, len, flags, pfx_len, clen; |
unsigned int i = 0, loc = 0, len, flags, pfx_len, clen; |
174 |
|
|
175 |
/* set up the buffer for the final LS message... */ |
/* set up the buffer for the final LS message... */ |
176 |
clen = snprintf(cmdbuf, sizeof(cmdbuf), ":%s CAP %s %s ", me.name, |
clen = snprintf(cmdbuf, sizeof(cmdbuf), ":%s CAP %s %s ", me.name, |
177 |
sptr->name[0] ? sptr->name : "*", subcmd); |
sptr->name[0] ? sptr->name : "*", subcmd); |
178 |
|
|
179 |
for (i = 0, loc = 0; i < CAPAB_LIST_LEN; ++i) |
for (; i < CAPAB_LIST_LEN; ++i) |
180 |
{ |
{ |
181 |
flags = capab_list[i].flags; |
flags = capab_list[i].flags; |
182 |
|
|