-- Prosody IM
--- Copyright (C) 2008-2009 Matthew Wild
--- Copyright (C) 2008-2009 Waqas Hussain
+-- Copyright (C) 2008-2010 Matthew Wild
+-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
-- Authenticated now
log("info", "Component authenticated: %s", session.host);
+ session.component_validate_from = module:get_option_boolean("validate_from_addresses") ~= false;
+
-- If component not already created for this host, create one now
if not hosts[session.host].connected then
local send = session.send;