aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-04-07 13:58:39 +0200
committerKim Alvefur <zash@zash.se>2023-04-07 13:58:39 +0200
commit21eabc7e58844a969fcfc52067589429728294f4 (patch)
tree708912c35c809733636bf3329600ad1a19bab368 /util/prosodyctl
parentd458a42c61b165bb4750d0124cf4db4eb35c9fab (diff)
downloadprosody-21eabc7e58844a969fcfc52067589429728294f4.tar.gz
prosody-21eabc7e58844a969fcfc52067589429728294f4.zip
util.prosodyctl.shell: Fix sending terminal width with single argument
E.g. when you do 'prosodyctl shell "s2s:show()"', this is the case that triggers, and it was missing the @width argument, causing confusion.
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 97be9f34..6a7313cc 100644
--- a/util/prosodyctl/shell.lua
+++ b/util/prosodyctl/shell.lua
@@ -85,7 +85,7 @@ local function start(arg) --luacheck: ignore 212/arg
end
client.events.add_handler("connected", function()
- client.send(st.stanza("repl-input"):text(arg[1]));
+ send_line(client, arg[1]);
return true;
end, 1);