aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2025-03-13 11:37:11 +0000
committerMatthew Wild <mwild1@gmail.com>2025-03-13 11:37:11 +0000
commit57d168dd5e2684522df3c268be482430f3682e2b (patch)
treeb3b417ed12241fb7fe9e60b84f3f9c49ff322c99 /plugins
parent384e3dbea2738e2c9b0c515fb865f1d07fda179e (diff)
downloadprosody-57d168dd5e2684522df3c268be482430f3682e2b.tar.gz
prosody-57d168dd5e2684522df3c268be482430f3682e2b.zip
prosodyctl shell: More reliable detection of REPL/interactive mode (fixes #1895)origin/13.013.0
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_shell.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 892844ff..28d758d0 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -342,6 +342,8 @@ local function handle_line(event)
local line = event.stanza:get_text();
local useglobalenv;
+ session.repl = event.stanza.attr.repl ~= "0";
+
local result = st.stanza("repl-result");
if line:match("^>") then
@@ -422,10 +424,6 @@ local function handle_line(event)
end
end
- if not source then
- session.repl = true;
- end
-
taskok, message = chunk(flags);
if promise.is_promise(taskok) then