mod_bidi/mod_bidi.lua
changeset 1129 ae0fa4d2005d
parent 1128 6b344b7e4781
child 1191 1818a7f08580
--- a/mod_bidi/mod_bidi.lua	Sat Aug 03 00:56:15 2013 +0200
+++ b/mod_bidi/mod_bidi.lua	Sat Aug 03 01:16:31 2013 +0200
@@ -60,7 +60,7 @@
 	if from_host ~= module.host then return end
 	local to_session = bidi_sessions[to_host];
 	if not to_session or to_session.type ~= "s2sin" then return end
-	if to_session.send(stanza) then return true end
+	if to_session.sends2s(stanza) then return true end
 end, -2);
 
 -- Incoming s2s