aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-12-02 16:15:50 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-12-02 16:15:50 +0500
commit113cb3c67cbd9f90b03e229aa6129b1bf99fe84c (patch)
tree7059a0f05b82b75d1580232de5003596b4548cb9 /plugins
parent0197aa017b47005fe98229d910dd2bf76baa6e23 (diff)
downloadprosody-113cb3c67cbd9f90b03e229aa6129b1bf99fe84c.tar.gz
prosody-113cb3c67cbd9f90b03e229aa6129b1bf99fe84c.zip
mod_component: Give stanza handlers a negative priority, to allow mod_iq to process them first.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_component.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua
index 7297fe17..fda271dd 100644
--- a/plugins/mod_component.lua
+++ b/plugins/mod_component.lua
@@ -43,15 +43,15 @@ local function handle_stanza(event)
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)