Software /
code /
prosody
Diff
plugins/mod_admin_shell.lua @ 13770:a28349b8a387 13.0
prosodyctl shell: More reliable detection of REPL/interactive mode (fixes #1895)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 13 Mar 2025 11:37:11 +0000 |
parent | 13769:5cc4a3e0335c |
child | 13796:c8e534b4f2e2 |
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua Thu Mar 13 11:35:39 2025 +0000 +++ b/plugins/mod_admin_shell.lua Thu Mar 13 11:37:11 2025 +0000 @@ -342,6 +342,8 @@ 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 @@ end end - if not source then - session.repl = true; - end - taskok, message = chunk(flags); if promise.is_promise(taskok) then