Changeset

4301:1484ac561b28

mod_component: Small code clarity fix
author Matthew Wild <mwild1@gmail.com>
date Sat, 04 Jun 2011 00:29:55 +0100
parents 4300:cfa69c19b428
children 4302:bbb0bf0a09f5
files plugins/mod_component.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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