aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2025-02-17 19:09:11 +0000
committerMatthew Wild <mwild1@gmail.com>2025-02-17 19:09:11 +0000
commitefc31d66ef0767e3ceb3e211097841ec31ac18ab (patch)
tree9a14140b7f952f19bed508432c9c17eba84a60eb /plugins
parentc8cf32b614be21b33e3d13e9791b3fa51df4b5f6 (diff)
downloadprosody-efc31d66ef0767e3ceb3e211097841ec31ac18ab.tar.gz
prosody-efc31d66ef0767e3ceb3e211097841ec31ac18ab.zip
mod_admin_shell: Set flag on session when in REPL mode
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_shell.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 09f6c92b..7c50b272 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -415,6 +415,10 @@ 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