Add search

This commit is contained in:
osmarks 2018-07-27 12:50:45 +01:00
parent e8befaba6f
commit 55f992374c

View File

@ -163,6 +163,8 @@ local function server(command)
os.queueEvent("reindex", inventory_with_space)
return { moved = moved }
elseif command.type == "search" then
return d.map(search(command.query, command.threshold), function(x) return x.item end)
end
end