Changeset

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
parents 13049:115ce3ab5b8b
children 13051:164c2787901a
files util/prosodyctl/shell.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)