Comparison

plugins/mod_admin_shell.lua @ 12888:b8504b71735d

Merge 0.12->trunk
author Kim Alvefur <zash@zash.se>
date Thu, 16 Feb 2023 20:15:39 +0100
parent 12871:885323e2a1ce
parent 12887:68df46926c26
child 12908:e96c3ea64996
comparison
equal deleted inserted replaced
12886:686c3cdd4775 12888:b8504b71735d
208 module:hook("admin/repl-input", function (event) 208 module:hook("admin/repl-input", function (event)
209 local ok, err = pcall(handle_line, event); 209 local ok, err = pcall(handle_line, event);
210 if not ok then 210 if not ok then
211 event.origin.send(st.stanza("repl-result", { type = "error" }):text(err)); 211 event.origin.send(st.stanza("repl-result", { type = "error" }):text(err));
212 end 212 end
213 return true;
213 end); 214 end);
214 215
215 -- Console commands -- 216 -- Console commands --
216 -- These are simple commands, not valid standalone in Lua 217 -- These are simple commands, not valid standalone in Lua
217 218