equal
deleted
inserted
replaced
196 module:hook("admin/repl-input", function (event) |
196 module:hook("admin/repl-input", function (event) |
197 local ok, err = pcall(handle_line, event); |
197 local ok, err = pcall(handle_line, event); |
198 if not ok then |
198 if not ok then |
199 event.origin.send(st.stanza("repl-result", { type = "error" }):text(err)); |
199 event.origin.send(st.stanza("repl-result", { type = "error" }):text(err)); |
200 end |
200 end |
|
201 return true; |
201 end); |
202 end); |
202 |
203 |
203 -- Console commands -- |
204 -- Console commands -- |
204 -- These are simple commands, not valid standalone in Lua |
205 -- These are simple commands, not valid standalone in Lua |
205 |
206 |