124 component_handle_stanza(origin, stanza); |
124 component_handle_stanza(origin, stanza); |
125 elseif hosts[host] and hosts[host].type == "component" then -- directed at a component |
125 elseif hosts[host] and hosts[host].type == "component" then -- directed at a component |
126 component_handle_stanza(origin, stanza); |
126 component_handle_stanza(origin, stanza); |
127 elseif origin.type == "c2s" and stanza.name == "presence" and stanza.attr.type ~= nil and stanza.attr.type ~= "unavailable" then |
127 elseif origin.type == "c2s" and stanza.name == "presence" and stanza.attr.type ~= nil and stanza.attr.type ~= "unavailable" then |
128 handle_outbound_presence_subscriptions_and_probes(origin, stanza, from_bare, to_bare, core_route_stanza); |
128 handle_outbound_presence_subscriptions_and_probes(origin, stanza, from_bare, to_bare, core_route_stanza); |
129 elseif origin.type ~= "c2s" and stanza.name == "iq" and not resource then -- directed at bare JID |
129 elseif hosts[host] and hosts[host].type == "local" and stanza.name == "iq" and not resource then -- directed at bare JID |
130 core_handle_stanza(origin, stanza); |
130 core_handle_stanza(origin, stanza); |
131 else |
131 else |
132 core_route_stanza(origin, stanza); |
132 core_route_stanza(origin, stanza); |
133 end |
133 end |
134 else |
134 else |