From 113cb3c67cbd9f90b03e229aa6129b1bf99fe84c Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 2 Dec 2010 16:15:50 +0500 Subject: mod_component: Give stanza handlers a negative priority, to allow mod_iq to process them first. --- plugins/mod_component.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'plugins/mod_component.lua') 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) -- cgit v1.2.3