Comparison

mod_component_roundrobin/mod_component_roundrobin.lua @ 1257:a02fbed74487

mod_component_roundrobin: Increase priority of stanza hooks above mod_component (thanks Julien)
author Kim Alvefur <zash@zash.se>
date Sat, 28 Dec 2013 14:12:02 +0100
parent 1255:3c35283b6780
child 1343:7dbde05b48a9
comparison
equal deleted inserted replaced
1256:ab80da799edf 1257:a02fbed74487
43 end 43 end
44 end 44 end
45 return true; 45 return true;
46 end 46 end
47 47
48 module:hook("iq/bare", handle_stanza, -1); 48 module:hook("iq/bare", handle_stanza, -0.5);
49 module:hook("message/bare", handle_stanza, -1); 49 module:hook("message/bare", handle_stanza, -0.5);
50 module:hook("presence/bare", handle_stanza, -1); 50 module:hook("presence/bare", handle_stanza, -0.5);
51 module:hook("iq/full", handle_stanza, -1); 51 module:hook("iq/full", handle_stanza, -0.5);
52 module:hook("message/full", handle_stanza, -1); 52 module:hook("message/full", handle_stanza, -0.5);
53 module:hook("presence/full", handle_stanza, -1); 53 module:hook("presence/full", handle_stanza, -0.5);
54 module:hook("iq/host", handle_stanza, -1); 54 module:hook("iq/host", handle_stanza, -0.5);
55 module:hook("message/host", handle_stanza, -1); 55 module:hook("message/host", handle_stanza, -0.5);
56 module:hook("presence/host", handle_stanza, -1); 56 module:hook("presence/host", handle_stanza, -0.5);
57 57
58 --- Handle authentication attempts by components 58 --- Handle authentication attempts by components
59 function handle_component_auth(event) 59 function handle_component_auth(event)
60 local session, stanza = event.origin, event.stanza; 60 local session, stanza = event.origin, event.stanza;
61 61