# HG changeset patch # User Kim Alvefur # Date 1680868719 -7200 # Node ID 585bd71a1a972fb64693b9876f810bb7a7626c31 # Parent 164c2787901a2308ac4e13f186b1ea174bffdd22 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. diff -r 164c2787901a -r 585bd71a1a97 util/prosodyctl/shell.lua --- a/util/prosodyctl/shell.lua Fri Apr 07 13:54:16 2023 +0200 +++ b/util/prosodyctl/shell.lua Fri Apr 07 13:58:39 2023 +0200 @@ -85,7 +85,7 @@ 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);