From c1acb03d538c60d99bab38f404b50c2c1234acfc Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 20 Nov 2008 02:05:26 +0000 Subject: Don't error reply to stanzas direct over the s2s stream they came from --- core/stanza_router.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3