# HG changeset patch # User Kim Alvefur # Date 1388236322 -3600 # Node ID a02fbed744870757e5b7a21d533452a9fabf2772 # Parent ab80da799edf7f72f053e3ccf5e1af6361ad97bf mod_component_roundrobin: Increase priority of stanza hooks above mod_component (thanks Julien) diff -r ab80da799edf -r a02fbed74487 mod_component_roundrobin/mod_component_roundrobin.lua --- a/mod_component_roundrobin/mod_component_roundrobin.lua Sat Dec 21 19:28:34 2013 +0100 +++ b/mod_component_roundrobin/mod_component_roundrobin.lua Sat Dec 28 14:12:02 2013 +0100 @@ -45,15 +45,15 @@ return true; end -module:hook("iq/bare", handle_stanza, -1); -module:hook("message/bare", handle_stanza, -1); -module:hook("presence/bare", handle_stanza, -1); -module:hook("iq/full", handle_stanza, -1); -module:hook("message/full", handle_stanza, -1); -module:hook("presence/full", handle_stanza, -1); -module:hook("iq/host", handle_stanza, -1); -module:hook("message/host", handle_stanza, -1); -module:hook("presence/host", handle_stanza, -1); +module:hook("iq/bare", handle_stanza, -0.5); +module:hook("message/bare", handle_stanza, -0.5); +module:hook("presence/bare", handle_stanza, -0.5); +module:hook("iq/full", handle_stanza, -0.5); +module:hook("message/full", handle_stanza, -0.5); +module:hook("presence/full", handle_stanza, -0.5); +module:hook("iq/host", handle_stanza, -0.5); +module:hook("message/host", handle_stanza, -0.5); +module:hook("presence/host", handle_stanza, -0.5); --- Handle authentication attempts by components function handle_component_auth(event)