12 lines
239 B
Lua
12 lines
239 B
Lua
|
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
|