aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-04-07 13:53:40 +0200
committerKim Alvefur <zash@zash.se>2023-04-07 13:53:40 +0200
commit4725a9621801371f90302690c4e6e228e324982d (patch)
tree999576c688cd2ce3a55a3eff4c75ba3e4f22bd3f /util/prosodyctl
parent7153f4e40a02e3b247826181d51f0ef91ecd0d8a (diff)
downloadprosody-4725a9621801371f90302690c4e6e228e324982d.tar.gz
prosody-4725a9621801371f90302690c4e6e228e324982d.zip
util.prosodyctl.shell: Coerce terminal width to string (for util.stanza)
Fixes invalid attribute value: expected string, got number
Diffstat (limited to 'util/prosodyctl')
-rw-r--r--util/prosodyctl/shell.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/prosodyctl/shell.lua b/util/prosodyctl/shell.lua
index 442ea2bd..97be9f34 100644
--- a/util/prosodyctl/shell.lua
+++ b/util/prosodyctl/shell.lua
@@ -30,7 +30,7 @@ local function read_line(prompt_string)
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)