# HG changeset patch # User Matthew Wild # Date 1335745213 -3600 # Node ID 27a99c289b90e294e5c1cfaaeb75b5676645fef3 # Parent 1aeece2cc814f8cb946f885b4a78aa4bd23b3bb9 mod_component: Allow unauthenticated components to authenticate (thanks Maranda) diff -r 1aeece2cc814 -r 27a99c289b90 plugins/mod_component.lua --- a/plugins/mod_component.lua Mon Apr 30 01:02:39 2012 +0100 +++ b/plugins/mod_component.lua Mon Apr 30 01:20:13 2012 +0100 @@ -43,7 +43,7 @@ local 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 (not session.host) or #stanza.tags > 0 then (session.log or log)("warn", "Invalid component handshake for host: %s", session.host);