buf manipulation fixes
This commit is contained in:
parent
b4d73d22da
commit
2ba9ccac5c
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user