[mw-devel] [Git][arthur/mw][master] Call js event handlers independently of the old event bind list

Andrew Price welshbyte at sucs.org
Sat Oct 6 14:26:20 BST 2018


Andrew Price pushed to branch master at Justin Mitchell / mw


Commits:
d5a200f3 by Andrew Price at 2018-10-06T14:24:33+01:00
Call js event handlers independently of the old event bind list

- - - - -


1 changed file:

- src/client/incoming.c


Changes:

=====================================
src/client/incoming.c
=====================================
--- a/src/client/incoming.c
+++ b/src/client/incoming.c
@@ -123,15 +123,15 @@ void DisplayStack(void)
 		{
 			if (cp_test(user, CP_SCRIPT))
 			{
+				struct mwevent ev = {
+						.ev_type = MWEV_TYPE_MSG,
+						.ev_data.msg = new->msg,
+				};
+				js_handle_event(&ev);
 				event_name = NULL;
 				script_output=1;
 				while ((event_name = NextLink(event_list, event_name)) != NULL)
 				{
-					struct mwevent ev = {
-						.ev_type = MWEV_TYPE_MSG,
-						.ev_data.msg = new->msg,
-					};
-					js_handle_event(&ev);
 					ExecEvent(event_name, new->text, "text", new->from, new->preamble);
 				}
 				if (script_output) display_message(new->text, new->flags & MST_BEEP, 1);



View it on GitLab: https://projects.sucs.org/arthur/mw/commit/d5a200f338e81ff5b50e1501c4e6423858fc21de

-- 
View it on GitLab: https://projects.sucs.org/arthur/mw/commit/d5a200f338e81ff5b50e1501c4e6423858fc21de
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/20181006/f6faa656/attachment-0001.html>


More information about the mw-devel mailing list