Comparison

plugins/mod_admin_shell.lua @ 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
parent 13734:c133635d0bc6
child 13736:42367f7e6e94
comparison
equal deleted inserted replaced
13734:c133635d0bc6 13735:5e8a707f1dbf
411 result.attr.type = "error"; 411 result.attr.type = "error";
412 result:text("Sorry, I couldn't understand that... "..err); 412 result:text("Sorry, I couldn't understand that... "..err);
413 event.origin.send(result); 413 event.origin.send(result);
414 return; 414 return;
415 end 415 end
416 end
417
418 if not source then
419 session.repl = true;
416 end 420 end
417 421
418 taskok, message = chunk(flags); 422 taskok, message = chunk(flags);
419 423
420 if promise.is_promise(taskok) then 424 if promise.is_promise(taskok) then