comparison mod_carbons/mod_carbons.lua @ 2373:704e4845267b

mod_carbons: Comment about the priority
author Kim Alvefur <zash@zash.se>
date Fri, 18 Nov 2016 10:22:28 +0100
parents b41957bf4fd3
children
comparison
equal deleted inserted replaced
2372:b1b120e654ff 2373:704e4845267b
120 local function c2s_message_handler(event) 120 local function c2s_message_handler(event)
121 return message_handler(event, true) 121 return message_handler(event, true)
122 end 122 end
123 123
124 -- Stanzas sent by local clients 124 -- Stanzas sent by local clients
125 module:hook("pre-message/host", c2s_message_handler, 0.05); 125 module:hook("pre-message/host", c2s_message_handler, 0.05); -- priority between mod_message (0 in 0.9) and mod_firewall (0.1)
126 module:hook("pre-message/bare", c2s_message_handler, 0.05); 126 module:hook("pre-message/bare", c2s_message_handler, 0.05);
127 module:hook("pre-message/full", c2s_message_handler, 0.05); 127 module:hook("pre-message/full", c2s_message_handler, 0.05);
128 -- Stanzas to local clients 128 -- Stanzas to local clients
129 module:hook("message/bare", message_handler, 0.05); 129 module:hook("message/bare", message_handler, 0.05);
130 module:hook("message/full", message_handler, 0.05); 130 module:hook("message/full", message_handler, 0.05);