# HG changeset patch # User Kim Alvefur # Date 1387386783 -3600 # Node ID 08e50d742392665d939bbc2f375272a515e678aa # Parent 280adf09ae123b9e38adf9c8a8d786a2ddbb1cde mod_component_roundrobin: Fix handshake (Thanks Julien) diff -r 280adf09ae12 -r 08e50d742392 mod_component_roundrobin/mod_component_roundrobin.lua --- a/mod_component_roundrobin/mod_component_roundrobin.lua Sun Dec 15 00:51:48 2013 +0100 +++ b/mod_component_roundrobin/mod_component_roundrobin.lua Wed Dec 18 18:13:03 2013 +0100 @@ -58,7 +58,7 @@ function handle_component_auth(event) local session, stanza = event.origin, event.stanza; - if session.type ~= "component" then return; end + if session.type ~= "component_unauthed" then return; end if sessions[session] then return; end if (not session.host) or #stanza.tags > 0 then @@ -92,4 +92,4 @@ return true; end -module:hook("stanza/jabber:component:accept:handshake", handle_component_auth); +module:hook("stanza/jabber:component:accept:handshake", handle_component_auth, 10);