diff options
author | Matthew Wild <mwild1@gmail.com> | 2025-03-13 11:41:32 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2025-03-13 11:41:32 +0000 |
commit | 77fb638f4d5a0ae04f6a7bb284e1e4c16066a65c (patch) | |
tree | b3b417ed12241fb7fe9e60b84f3f9c49ff322c99 /util/prosodyctl/shell.lua | |
parent | 74970e28158f7699fafafd0daf088ca68d73b662 (diff) | |
parent | 57d168dd5e2684522df3c268be482430f3682e2b (diff) | |
download | prosody-origin/master.tar.gz prosody-origin/master.zip |
Merge 13.0->trunkHEADorigin/mastermaster
Diffstat (limited to 'util/prosodyctl/shell.lua')
-rw-r--r-- | util/prosodyctl/shell.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/prosodyctl/shell.lua b/util/prosodyctl/shell.lua index d72cf294..31936989 100644 --- a/util/prosodyctl/shell.lua +++ b/util/prosodyctl/shell.lua @@ -29,8 +29,8 @@ local function read_line(prompt_string) end end -local function send_line(client, line) - client.send(st.stanza("repl-input", { width = tostring(term_width()) }):text(line)); +local function send_line(client, line, interactive) + client.send(st.stanza("repl-input", { width = tostring(term_width()), repl = interactive == false and "0" or "1" }):text(line)); end local function repl(client) @@ -91,7 +91,7 @@ local function start(arg) --luacheck: ignore 212/arg end client.events.add_handler("connected", function() - send_line(client, arg[1]); + send_line(client, arg[1], false); return true; end, 1); |