Changeset 771 for branches/ithildin-1.1
- Timestamp:
- 09/19/06 17:49:30 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ithildin-1.1/modules/ircd/commands/watch.c
r579 r771 200 200 int sblen = 0; 201 201 202 /* XXX: static sized buffer-fuck. this must be cleaned up */ 202 203 wp = find_watch(cli->nick); 203 204 sendto_one(cli, RPL_FMT(cli, RPL_WATCHSTAT), cwp->count, 204 205 (wp != NULL ? wp->count : 0)); 205 206 LIST_FOREACH(wlp, &cwp->list, lpwtch) { 206 if (3 20 - sblen <= strlen(wlp->watch->nick)) {207 if (310 - sblen <= strlen(wlp->watch->nick)) { 207 208 /* send the list if it's getting full */ 208 209 sendto_one(cli, RPL_FMT(cli, RPL_WATCHLIST), sbuf); 209 210 sblen = 0; 210 211 } 211 sblen += snprintf(sbuf + sblen, 3 20 - sblen, "%s ",212 sblen += snprintf(sbuf + sblen, 310 - sblen, "%s ", 212 213 wlp->watch->nick); 213 214 }
Note: See TracChangeset
for help on using the changeset viewer.
