aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-06-04 00:29:55 +0100
committerMatthew Wild <mwild1@gmail.com>2011-06-04 00:29:55 +0100
commit63203963a58c1a74d15f728f00dd178af992311e (patch)
treee28702e6134dc0f8546439944e0b4b4aedc32eb2 /plugins
parent14c336d4073414dbc7752c9a4db685fe9b698587 (diff)
downloadprosody-63203963a58c1a74d15f728f00dd178af992311e.tar.gz
prosody-63203963a58c1a74d15f728f00dd178af992311e.zip
mod_component: Small code clarity fix
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_component.lua2
1 files changed, 1 insertions, 1 deletions
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