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
|
2024-08-10 01:03:57 +00:00
|
|
|
break
|
2024-08-10 00:35:03 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
return cmd
|