Changeset

3674:4b7281c577b9

mod_component: Give stanza handlers a negative priority, to allow mod_iq to process them first.
author Waqas Hussain <waqas20@gmail.com>
date Thu, 02 Dec 2010 16:15:50 +0500
parents 3673:43b854062206
children 3675:cd3a1ae596b4
files plugins/mod_component.lua
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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)