Don't error reply to stanzas direct over the s2s stream they came from

Thu, 20 Nov 2008 02:05:26 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 20 Nov 2008 02:05:26 +0000
changeset 358
ffb1a720f5ae
parent 357
17bcecb06420
child 359
8fbfa8f885a6

Don't error reply to stanzas direct over the s2s stream they came from

core/stanza_router.lua file | annotate | diff | comparison | revisions
--- 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

mercurial