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 /plugins | |
parent | 74970e28158f7699fafafd0daf088ca68d73b662 (diff) | |
parent | 57d168dd5e2684522df3c268be482430f3682e2b (diff) | |
download | prosody-77fb638f4d5a0ae04f6a7bb284e1e4c16066a65c.tar.gz prosody-77fb638f4d5a0ae04f6a7bb284e1e4c16066a65c.zip |
Merge 13.0->trunkHEADorigin/mastermaster
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_admin_shell.lua | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index b88b5316..28d758d0 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -92,13 +92,8 @@ end -- Seed with default sections and their description text help_topic "console" "Help regarding the console itself" [[ Hey! Welcome to Prosody's admin console. -First thing, if you're ever wondering how to get out, simply type 'quit'. -Secondly, note that we don't support the full telnet protocol yet (it's coming) -so you may have trouble using the arrow keys, etc. depending on your system. - -For now we offer a couple of handy shortcuts: -!! - Repeat the last command -!old!new! - repeat the last command, but with 'old' replaced by 'new' +If you're ever wondering how to get out, simply type 'quit' (ctrl+d should also +work). For those well-versed in Prosody's internals, or taking instruction from those who are, you can prefix a command with > to escape the console sandbox, and access everything in @@ -347,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 @@ -427,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 |