mod_component: Give stanza handlers a negative priority, to allow mod_iq to process them first.

Thu, 02 Dec 2010 16:15:50 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Thu, 02 Dec 2010 16:15:50 +0500
changeset 3674
4b7281c577b9
parent 3673
43b854062206
child 3675
cd3a1ae596b4

mod_component: Give stanza handlers a negative priority, to allow mod_iq to process them first.

plugins/mod_component.lua file | annotate | diff | comparison | revisions
--- 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)

mercurial