65 if component then |
65 if component then |
66 log("debug", "%s stanza being handled by component: %s", stanza.name, host); |
66 log("debug", "%s stanza being handled by component: %s", stanza.name, host); |
67 component(origin, stanza, hosts[host]); |
67 component(origin, stanza, hosts[host]); |
68 else |
68 else |
69 log("error", "Component manager recieved a stanza for a non-existing component: "..tostring(stanza)); |
69 log("error", "Component manager recieved a stanza for a non-existing component: "..tostring(stanza)); |
|
70 default_component_handler(origin, stanza); |
70 end |
71 end |
71 end |
72 end |
72 |
73 |
73 function create_component(host, component, events) |
74 function create_component(host, component, events) |
74 -- TODO check for host well-formedness |
75 -- TODO check for host well-formedness |