diff mod_smacks/mod_smacks.lua @ 1526:120817435151

mod_smacks: Fix sending ack requests on s2s
author Kim Alvefur <zash@zash.se>
date Mon, 20 Oct 2014 11:51:07 +0200
parents d4a4ed31567e
children 06ecc5b3ca46
line wrap: on
line diff
--- a/mod_smacks/mod_smacks.lua	Wed Oct 15 11:37:39 2014 +0200
+++ b/mod_smacks/mod_smacks.lua	Mon Oct 20 11:51:07 2014 +0200
@@ -89,7 +89,7 @@
 			module:add_timer(0, function ()
 				if not session.awaiting_ack then
 					session.awaiting_ack = true;
-					session.send(st.stanza("r", { xmlns = session.smacks }));
+					(session.sends2s or session.send)(st.stanza("r", { xmlns = session.smacks }));
 				end
 			end);
 		end