# HG changeset patch # User Matthew Wild # Date 1307143795 -3600 # Node ID 1484ac561b2840d024dac858f41197a7e57ca059 # Parent cfa69c19b428e9603def4781720f87c3dcd00513 mod_component: Small code clarity fix diff -r cfa69c19b428 -r 1484ac561b28 plugins/mod_component.lua --- a/plugins/mod_component.lua Fri Jun 03 05:36:44 2011 +0100 +++ b/plugins/mod_component.lua Sat Jun 04 00:29:55 2011 +0100 @@ -86,7 +86,7 @@ send = session.send; main_session = session; session.on_destroy = on_destroy; - session.component_validate_from = module:get_option_boolean("validate_from_addresses") ~= false; + session.component_validate_from = module:get_option_boolean("validate_from_addresses", true); log("info", "Component successfully authenticated: %s", session.host); session.send(st.stanza("handshake")); else -- TODO: Implement stanza distribution