core/stanza_router.lua

changeset 257
762274c98040
parent 250
9f66ede8deeb
child 262
8c73fb2ff4a2
--- a/core/stanza_router.lua	Fri Nov 14 02:23:43 2008 +0000
+++ b/core/stanza_router.lua	Fri Nov 14 02:33:20 2008 +0000
@@ -182,7 +182,8 @@
 		end -- TODO handle other stanzas
 	else
 		log("warn", "Unhandled origin: %s", origin.type);
-		origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); -- FIXME correct error?
+		-- s2s stanzas can get here
+		(origin.sends2s or origin.send)(st.error_reply(stanza, "cancel", "service-unavailable")); -- FIXME correct error?
 	end
 end
 

mercurial