plugins/mod_admin_shell.lua
changeset 12892 b8504b71735d
parent 12875 885323e2a1ce
parent 12891 68df46926c26
child 12912 e96c3ea64996
equal deleted inserted replaced
12890:686c3cdd4775 12892: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