Software /
code /
prosody
Comparison
core/stanza_router.lua @ 192:71c389c6fc2e
Another fix for s2s (well, let's say it was more for modules)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 01 Nov 2008 21:10:19 +0000 |
parent | 191:e64c8a44060f |
child | 199:eccf66b42bd7 |
comparison
equal
deleted
inserted
replaced
191:e64c8a44060f | 192:71c389c6fc2e |
---|---|
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 |