[mw-devel] [Git][milliways/mw][master] Send who list even when user is not on the talker

Andrew Price welshbyte at sucs.org
Sat Jan 18 13:30:08 GMT 2020



Andrew Price pushed to branch master at milliways / mw


Commits:
fc2dd103 by Andrew Price at 2020-01-18T13:25:40+00:00
Send who list even when user is not on the talker

Fixes timeouts due to 45233543aa2be8a2f66ff2588b65ff1af9ee118f while
still allowing script init functions to use the who list.

- - - - -


1 changed file:

- src/server/servsock.c


Changes:

=====================================
src/server/servsock.c
=====================================
@@ -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);



View it on GitLab: https://projects.sucs.org/milliways/mw/commit/fc2dd1033a7aed8cdab8f46ef6baca8189d35a5b

-- 
View it on GitLab: https://projects.sucs.org/milliways/mw/commit/fc2dd1033a7aed8cdab8f46ef6baca8189d35a5b
You're receiving this email because of your account on projects.sucs.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20200118/25e43ecb/attachment.html>


More information about the mw-devel mailing list