aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-15 19:13:28 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-15 19:13:28 +0000
commit62ee1df6b6c30f47a093bbbb12f3939ca39227be (patch)
treecb6d6bae726e5bdf0655871eb14183eb6e93c4e0 /core
parentb1bc21f5f08013fe2aaa4c5a7323c384280d47d1 (diff)
downloadprosody-62ee1df6b6c30f47a093bbbb12f3939ca39227be.tar.gz
prosody-62ee1df6b6c30f47a093bbbb12f3939ca39227be.zip
Fix routing of outbound iq stanzas
Diffstat (limited to 'core')
-rw-r--r--core/stanza_router.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index c1819651..2b0e1f4b 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -50,7 +50,7 @@ function core_process_stanza(origin, stanza)
error("Client MUST bind resource after auth");
end
- -- TODO also, stazas should be returned to their original state before the function ends
+ -- TODO also, stanzas should be returned to their original state before the function ends
if origin.type == "c2s" then
stanza.attr.from = origin.full_jid;
end
@@ -88,7 +88,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);
- elseif stanza.name == "iq" and not resource then -- directed at bare JID
+ elseif origin.type ~= "c2s" and stanza.name == "iq" and not resource then -- directed at bare JID
core_handle_stanza(origin, stanza);
else
core_route_stanza(origin, stanza);