Diff

util/prosodyctl/shell.lua @ 13050:4ae759490e31

util.prosodyctl.shell: Coerce terminal width to string (for util.stanza) Fixes invalid attribute value: expected string, got number
author Kim Alvefur <zash@zash.se>
date Fri, 07 Apr 2023 13:53:40 +0200
parent 13047:d939bf469057
child 13052:585bd71a1a97
line wrap: on
line diff
--- a/util/prosodyctl/shell.lua	Fri Apr 07 12:51:26 2023 +0100
+++ b/util/prosodyctl/shell.lua	Fri Apr 07 13:53:40 2023 +0200
@@ -30,7 +30,7 @@
 end
 
 local function send_line(client, line)
-	client.send(st.stanza("repl-input", { width = term_width() }):text(line));
+	client.send(st.stanza("repl-input", { width = tostring(term_width()) }):text(line));
 end
 
 local function repl(client)