Diff

plugins/smacks.lua @ 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
parent 445:b119dc4d8bc2
child 448:6d97b42bb1b4
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);