core/stanza_router.lua

changeset 358
ffb1a720f5ae
parent 340
a31715bf08eb
child 360
e918c979ad1a
--- 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