From a8a1bb526ff592afc774de71b1781b21b17124b4 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 30 Apr 2012 01:20:13 +0100 Subject: mod_component: Allow unauthenticated components to authenticate (thanks Maranda) --- plugins/mod_component.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua index 09b0d2b3..738124cc 100644 --- a/plugins/mod_component.lua +++ b/plugins/mod_component.lua @@ -43,7 +43,7 @@ function module.add_host(module) 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); -- cgit v1.2.3