Changeset

358:ffb1a720f5ae

Don't error reply to stanzas direct over the s2s stream they came from
author Matthew Wild <mwild1@gmail.com>
date Thu, 20 Nov 2008 02:05:26 +0000
parents 357:17bcecb06420
children 359:8fbfa8f885a6
files core/stanza_router.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/stanza_router.lua	Thu Nov 20 01:33:25 2008 +0000
+++ b/core/stanza_router.lua	Thu Nov 20 02:05:26 2008 +0000
@@ -191,7 +191,7 @@
 		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