Changeset

446:62fb547bd31a

plugins.smacks: Convert counter to string in resumption Fixes traceback due to stricter stanza API
author Kim Alvefur <zash@zash.se>
date Thu, 10 Jun 2021 14:16:19 +0200
parents 445:b119dc4d8bc2
children 447:f3ecbf65a81e
files plugins/smacks.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/smacks.lua	Thu Jun 10 11:58:23 2021 +0200
+++ b/plugins/smacks.lua	Thu Jun 10 14:16:19 2021 +0200
@@ -130,7 +130,7 @@
 			if stream.smacks and stream.bound then -- Already enabled in a previous session - resume
 				stream:debug("Resuming stream with %d handled stanzas", handled_stanza_count);
 				stream:send(verse.stanza("resume", { xmlns = xmlns_sm,
-					h = handled_stanza_count, previd = stream.resumption_token }));
+					h = tostring(handled_stanza_count), previd = stream.resumption_token }));
 				return true;
 			else
 				stream:hook("bind-success", on_bind_success, 1);