comparison core/componentmanager.lua @ 1438:f02a5a982fac

Merged with trunk
author Waqas Hussain <waqas20@gmail.com>
date Sun, 28 Jun 2009 21:32:19 +0500
parents b5d4db71ef1a
children df9d78544f34
comparison
equal deleted inserted replaced
1437:cf2eba9b1716 1438:f02a5a982fac
73 end 73 end
74 if component then 74 if component then
75 log("debug", "%s stanza being handled by component: %s", stanza.name, host); 75 log("debug", "%s stanza being handled by component: %s", stanza.name, host);
76 component(origin, stanza, hosts[host]); 76 component(origin, stanza, hosts[host]);
77 else 77 else
78 log("error", "Component manager recieved a stanza for a non-existing component: " .. stanza.attr.to); 78 log("error", "Component manager recieved a stanza for a non-existing component: " .. (stanza.attr.to or stanza));
79 end 79 end
80 end 80 end
81 81
82 function create_component(host, component) 82 function create_component(host, component)
83 -- TODO check for host well-formedness 83 -- TODO check for host well-formedness