# HG changeset patch # User Emmanuel Gil Peyrot # Date 1528473414 -7200 # Node ID 06e07b483805867b812efdff9e4ab298482bb1ba # Parent 75930e4c2478762cf095626ee1cb6c60da7d05a8 mod_smacks: Convert max number into a string before inserting it into a stanza. diff -r 75930e4c2478 -r 06e07b483805 mod_smacks/mod_smacks.lua --- a/mod_smacks/mod_smacks.lua Fri Jun 08 17:39:43 2018 +0200 +++ b/mod_smacks/mod_smacks.lua Fri Jun 08 17:56:54 2018 +0200 @@ -279,7 +279,7 @@ session_registry.set(session.username, resume_token, session); session.resumption_token = resume_token; end - (session.sends2s or session.send)(st.stanza("enabled", { xmlns = xmlns_sm, id = resume_token, resume = resume, max = resume_timeout })); + (session.sends2s or session.send)(st.stanza("enabled", { xmlns = xmlns_sm, id = resume_token, resume = resume, max = tostring(resume_timeout) })); return true; end module:hook_stanza(xmlns_sm2, "enable", function (session, stanza) return handle_enable(session, stanza, xmlns_sm2); end, 100);