Commit fc2dd103 authored by Andrew Price's avatar Andrew Price
Browse files

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
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)
			continue;

		msg_attach(msg, c);
		printf("Broadcast to %s in %d\n", urec->name, urec->room);