Changeset

13735:5e8a707f1dbf 13.0

mod_admin_shell: Set flag on session when in REPL mode
author Matthew Wild <mwild1@gmail.com>
date Mon, 17 Feb 2025 19:09:11 +0000
parents 13734:c133635d0bc6
children 13736:42367f7e6e94
files plugins/mod_admin_shell.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua	Mon Feb 17 18:25:52 2025 +0000
+++ b/plugins/mod_admin_shell.lua	Mon Feb 17 19:09:11 2025 +0000
@@ -415,6 +415,10 @@
 		end
 	end
 
+	if not source then
+		session.repl = true;
+	end
+
 	taskok, message = chunk(flags);
 
 	if promise.is_promise(taskok) then