Software /
code /
prosody
Comparison
core/stanza_router.lua @ 789:ced87939984e
stanza_router: Fix handling of iq from c2s to bare JIDs, thanks to jaharkes for spotting
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 11 Feb 2009 19:53:09 +0000 |
parent | 785:31d5be1371cf |
child | 848:b1f3977fd140 |
comparison
equal
deleted
inserted
replaced
788:b85b1dee4f4b | 789:ced87939984e |
---|---|
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 |