# HG changeset patch # User Kim Alvefur # Date 1413798667 -7200 # Node ID 120817435151a6ef8a6519a34c6f27af9420608a # Parent 37cef218ba20394f326f8fb91506beea2349f97d mod_smacks: Fix sending ack requests on s2s diff -r 37cef218ba20 -r 120817435151 mod_smacks/mod_smacks.lua --- 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