Change display of list command

This commit is contained in:
Pysicopadingo 2022-10-31 23:34:24 +01:00
parent ba4f4b8aa7
commit 1f5164b51b

View file

@ -226,7 +226,7 @@ int cmd_list_connected(int sender_id) {
for (int i = 0; i < MAX_CLIENTS; i++) { for (int i = 0; i < MAX_CLIENTS; i++) {
if ((clients[i].id != -1) && (clients[i].id != sender_id)) { if ((clients[i].id != -1) && (clients[i].id != sender_id)) {
nb_clients++; nb_clients++;
sprintf(buf, " %d\n", clients[i].id); sprintf(buf, "%d \n", clients[i].id);
write(clients[sender_id].pipe[1], buf, strlen(buf)); write(clients[sender_id].pipe[1], buf, strlen(buf));
} }
} }