changeset 1257:a02fbed74487

mod_component_roundrobin: Increase priority of stanza hooks above mod_component (thanks Julien)
author Kim Alvefur <zash@zash.se>
date Sat, 28 Dec 2013 14:12:02 +0100
parents ab80da799edf
children fc82d8eded7d
files mod_component_roundrobin/mod_component_roundrobin.lua
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/mod_component_roundrobin/mod_component_roundrobin.lua	Sat Dec 21 19:28:34 2013 +0100
+++ b/mod_component_roundrobin/mod_component_roundrobin.lua	Sat Dec 28 14:12:02 2013 +0100
@@ -45,15 +45,15 @@
 	return true;
 end
 
-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);
+module:hook("iq/bare", handle_stanza, -0.5);
+module:hook("message/bare", handle_stanza, -0.5);
+module:hook("presence/bare", handle_stanza, -0.5);
+module:hook("iq/full", handle_stanza, -0.5);
+module:hook("message/full", handle_stanza, -0.5);
+module:hook("presence/full", handle_stanza, -0.5);
+module:hook("iq/host", handle_stanza, -0.5);
+module:hook("message/host", handle_stanza, -0.5);
+module:hook("presence/host", handle_stanza, -0.5);
 
 --- Handle authentication attempts by components
 function handle_component_auth(event)