mod_carbons: Adjust event hook priorities to be between mod_message and mod_firewall (see #669)
authorKim Alvefur <zash@zash.se>
Thu, 17 Nov 2016 23:10:29 +0100
changeset 2375 b41957bf4fd3
parent 2374 5fe483b73fd2
child 2376 b1b120e654ff
mod_carbons: Adjust event hook priorities to be between mod_message and mod_firewall (see #669)
mod_carbons/mod_carbons.lua
--- a/mod_carbons/mod_carbons.lua	Tue Nov 15 21:55:12 2016 +0000
+++ b/mod_carbons/mod_carbons.lua	Thu Nov 17 23:10:29 2016 +0100
@@ -122,12 +122,12 @@
 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.05);
+module:hook("pre-message/bare", c2s_message_handler, 0.05);
+module:hook("pre-message/full", c2s_message_handler, 0.05);
 -- 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.05);
+module:hook("message/full", message_handler, 0.05);
 
 module:add_feature(xmlns_carbons);
 module:add_feature(xmlns_carbons_old);