From 63203963a58c1a74d15f728f00dd178af992311e Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 4 Jun 2011 00:29:55 +0100 Subject: mod_component: Small code clarity fix --- 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 fda271dd..a70a7223 100644 --- a/plugins/mod_component.lua +++ b/plugins/mod_component.lua @@ -86,7 +86,7 @@ function handle_component_auth(event) 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 -- cgit v1.2.3