Changeset

13052:585bd71a1a97

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.
author Kim Alvefur <zash@zash.se>
date Fri, 07 Apr 2023 13:58:39 +0200
parents 13051:164c2787901a
children 13053:8128c4f1b08b
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 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);