# HG changeset patch # User Waqas Hussain # Date 1291288550 -18000 # Node ID 4b7281c577b9b39670e4fa62f3b9c1d9097e45b4 # Parent 43b85406220635c0735c5372de87c4c2719d6be5 mod_component: Give stanza handlers a negative priority, to allow mod_iq to process them first. diff -r 43b854062206 -r 4b7281c577b9 plugins/mod_component.lua --- a/plugins/mod_component.lua Thu Dec 02 16:04:42 2010 +0500 +++ b/plugins/mod_component.lua Thu Dec 02 16:15:50 2010 +0500 @@ -43,15 +43,15 @@ return true; end -module:hook("iq/bare", handle_stanza); -module:hook("message/bare", handle_stanza); -module:hook("presence/bare", handle_stanza); -module:hook("iq/full", handle_stanza); -module:hook("message/full", handle_stanza); -module:hook("presence/full", handle_stanza); -module:hook("iq/host", handle_stanza); -module:hook("message/host", handle_stanza); -module:hook("presence/host", handle_stanza); +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); --- Handle authentication attempts by components function handle_component_auth(event)