forked from bip/bip
1
0
Fork 0

buf manipulation fixes

This commit is contained in:
nohar 2006-07-02 12:57:23 +00:00
parent b4d73d22da
commit 2ba9ccac5c
1 changed files with 3 additions and 1 deletions

View File

@ -989,11 +989,13 @@ void write_user_list(connection_t *c, char *dest)
struct c_user *u = hash_it_item(&it);
snprintf(buf, 4095, "* %s:", u->name);
buf[4095] = 0;
WRITE_LINE2(c, P_IRCMASK, "PRIVMSG", dest, buf);
for (list_it_init(&u->connectionl, &lit); list_it_item(&lit);
list_it_next(&lit)) {
struct c_connection *con = list_it_item(&lit);
snprintf(buf, 4095, " - %s", con->name);
buf[4095] = 0;
WRITE_LINE2(c, P_IRCMASK, "PRIVMSG", dest, buf);
}
}