Commit fc2dd103 authored by Andrew Price's avatar Andrew Price

Send who list even when user is not on the talker

Fixes timeouts due to 45233543 while
still allowing script init functions to use the who list.
parent 1846ed70
Pipeline #683 passed with stage
in 8 minutes and 43 seconds
......@@ -515,7 +515,8 @@ void msg_attach_to_all(ipc_message_t *msg)
if (pread(users_fd, urec, sizeof(*urec), c->user) <= 0) continue;
/* person not on talker, just skip them */
if (!cm_test(&user, CM_ONCHAT)) continue;
if (!cm_test(&user, CM_ONCHAT) && msg->head.type != IPC_WHOLIST)
msg_attach(msg, c);
printf("Broadcast to %s in %d\n", urec->name, urec->room);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment