equal
deleted
inserted
replaced
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 |