mod_component: Give stanza handlers a negative priority, to allow mod_iq to process them first.

This commit is contained in:
Waqas Hussain 2010-12-02 16:15:50 +05:00
parent 0197aa017b
commit 113cb3c67c

View file

@ -43,15 +43,15 @@ local function handle_stanza(event)
return true; return true;
end end
module:hook("iq/bare", handle_stanza); module:hook("iq/bare", handle_stanza, -1);
module:hook("message/bare", handle_stanza); module:hook("message/bare", handle_stanza, -1);
module:hook("presence/bare", handle_stanza); module:hook("presence/bare", handle_stanza, -1);
module:hook("iq/full", handle_stanza); module:hook("iq/full", handle_stanza, -1);
module:hook("message/full", handle_stanza); module:hook("message/full", handle_stanza, -1);
module:hook("presence/full", handle_stanza); module:hook("presence/full", handle_stanza, -1);
module:hook("iq/host", handle_stanza); module:hook("iq/host", handle_stanza, -1);
module:hook("message/host", handle_stanza); module:hook("message/host", handle_stanza, -1);
module:hook("presence/host", handle_stanza); module:hook("presence/host", handle_stanza, -1);
--- Handle authentication attempts by components --- Handle authentication attempts by components
function handle_component_auth(event) function handle_component_auth(event)