plugins/mod_admin_shell.lua
branch0.12
changeset 12891 68df46926c26
parent 12792 3835c397b129
child 12892 b8504b71735d
child 13081 de42a93a7c8d
equal deleted inserted replaced
12889:3a6dae39c70e 12891:68df46926c26
   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