58 handle_outbound_presence_subscriptions_and_probes(origin, stanza, from_bare, to_bare); |
58 handle_outbound_presence_subscriptions_and_probes(origin, stanza, from_bare, to_bare); |
59 elseif hosts[to] and hosts[to].type == "local" then |
59 elseif hosts[to] and hosts[to].type == "local" then |
60 core_handle_stanza(origin, stanza); |
60 core_handle_stanza(origin, stanza); |
61 elseif stanza.name == "iq" and not select(3, jid_split(to)) then |
61 elseif stanza.name == "iq" and not select(3, jid_split(to)) then |
62 core_handle_stanza(origin, stanza); |
62 core_handle_stanza(origin, stanza); |
63 elseif stanza.attr.xmlns ~= "jabber:client" and stanza.attr.xmlns ~= "jabber:server" then |
63 elseif stanza.attr.xmlns and stanza.attr.xmlns ~= "jabber:client" and stanza.attr.xmlns ~= "jabber:server" then |
64 modules_handle_stanza(origin, stanza); |
64 modules_handle_stanza(origin, stanza); |
65 elseif origin.type == "c2s" or origin.type == "s2sin" then |
65 elseif origin.type == "c2s" or origin.type == "s2sin" then |
66 core_route_stanza(origin, stanza); |
66 core_route_stanza(origin, stanza); |
67 end |
67 end |
68 end |
68 end |