aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-20 02:05:26 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-20 02:05:26 +0000
commitc1acb03d538c60d99bab38f404b50c2c1234acfc (patch)
tree90888c2e6f5103a62b6d3b40f3c7659a345a452b /core
parent5c7ec634b1765f8edcc8b59aff2b2b899180dc65 (diff)
downloadprosody-c1acb03d538c60d99bab38f404b50c2c1234acfc.tar.gz
prosody-c1acb03d538c60d99bab38f404b50c2c1234acfc.zip
Don't error reply to stanzas direct over the s2s stream they came from
Diffstat (limited to 'core')
-rw-r--r--core/stanza_router.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 46ece139..9a638896 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -191,7 +191,7 @@ function core_handle_stanza(origin, stanza)
log("warn", "Unhandled origin: %s", origin.type);
if (stanza.attr.xmlns == "jabber:client" or stanza.attr.xmlns == "jabber:server") and stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then
-- s2s stanzas can get here
- (origin.sends2s or origin.send)(st.error_reply(stanza, "cancel", "service-unavailable")); -- FIXME correct error?
+ origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); -- FIXME correct error?
end
end
end