diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-02-11 19:53:09 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-02-11 19:53:09 +0000 |
commit | f956da83d28015eb28543f1fbb04f722ad7eef32 (patch) | |
tree | 1172fe84459b9fadc4168d0a73e428e6ad6648d8 /core | |
parent | 2aa5caa78e5d1049485cc301434fd46d7b32cbe7 (diff) | |
download | prosody-f956da83d28015eb28543f1fbb04f722ad7eef32.tar.gz prosody-f956da83d28015eb28543f1fbb04f722ad7eef32.zip |
stanza_router: Fix handling of iq from c2s to bare JIDs, thanks to jaharkes for spotting
Diffstat (limited to 'core')
-rw-r--r-- | core/stanza_router.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua index a8de6b4a..1ebc158d 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -126,7 +126,7 @@ function core_process_stanza(origin, stanza) component_handle_stanza(origin, stanza); elseif origin.type == "c2s" and stanza.name == "presence" and stanza.attr.type ~= nil and stanza.attr.type ~= "unavailable" then handle_outbound_presence_subscriptions_and_probes(origin, stanza, from_bare, to_bare, core_route_stanza); - elseif origin.type ~= "c2s" and stanza.name == "iq" and not resource then -- directed at bare JID + elseif hosts[host] and hosts[host].type == "local" and stanza.name == "iq" and not resource then -- directed at bare JID core_handle_stanza(origin, stanza); else core_route_stanza(origin, stanza); |