diff mod_bidi/mod_bidi.lua @ 1129:ae0fa4d2005d

mod_bidi: Revert to sends2s (Go to sleep zash, you're too tired to code)
author Kim Alvefur <zash@zash.se>
date Sat, 03 Aug 2013 01:16:31 +0200
parents 6b344b7e4781
children 1818a7f08580
line wrap: on
line diff
--- 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