prpw/cmd/entry_remove.lua

12 lines
239 B
Lua
Raw Normal View History

2024-08-10 00:35:03 +00:00
local function cmd(args)
local entries = env.xmlFindTags(env.db,"entries")[1]
for i,entry in pairs(entries.children) do
if entry.attrs.id == args[2] then
entry.attrs.removed = "true"
env.changed = true
end
end
end
return cmd