aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_component.lua
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
commite1b178ba6de8234f65c3c714cf13d2b31fd06409 (patch)
treea3fa9fc30b165ee937563a6f8aab860f08c1909e /plugins/mod_component.lua
parent176b0083be91b05b4c15ee4efbbc4051513f0d45 (diff)
downloadprosody-e1b178ba6de8234f65c3c714cf13d2b31fd06409.tar.gz
prosody-e1b178ba6de8234f65c3c714cf13d2b31fd06409.zip
mod_component: Give stanza handlers a negative priority, to allow mod_iq to process them first.
Diffstat (limited to 'plugins/mod_component.lua')
-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)