Diff

plugins/mod_carbons.lua @ 7718:c58075c4d375

mod_message, mod_carbons: Adjust event hook priorities to negative (core modules should do this to make overriding from other modules easier)
author Kim Alvefur <zash@zash.se>
date Thu, 17 Nov 2016 22:38:46 +0100
parent 7698:edacd0bef0e8
child 7776:63f50a84318f
line wrap: on
line diff
--- a/plugins/mod_carbons.lua	Fri Nov 04 13:28:10 2016 +0100
+++ b/plugins/mod_carbons.lua	Thu Nov 17 22:38:46 2016 +0100
@@ -100,11 +100,11 @@
 end
 
 -- Stanzas sent by local clients
-module:hook("pre-message/host", c2s_message_handler, 1);
-module:hook("pre-message/bare", c2s_message_handler, 1);
-module:hook("pre-message/full", c2s_message_handler, 1);
+module:hook("pre-message/host", c2s_message_handler, -0.5);
+module:hook("pre-message/bare", c2s_message_handler, -0.5);
+module:hook("pre-message/full", c2s_message_handler, -0.5);
 -- Stanzas to local clients
-module:hook("message/bare", message_handler, 1);
-module:hook("message/full", message_handler, 1);
+module:hook("message/bare", message_handler, -0.5);
+module:hook("message/full", message_handler, -0.5);
 
 module:add_feature(xmlns_carbons);