Fix horrible mistake

This commit is contained in:
Fierelier 2024-08-30 16:02:40 +02:00
parent 1df30b8954
commit da19bd99b3

View File

@ -2,6 +2,7 @@ local function cmd(args)
local entries = env.xmlFindTags(env.db,"entries")[1]
for i,entry in pairs(entries.children) do
local fields = env.xmlFindTags(entry,"fields")[1]
if entry.attrs.id == args[2] then
for i,v in pairs(fields.children) do
if v.attrs.name == args[3] then
table.remove(fields.children,i)
@ -11,6 +12,7 @@ local function cmd(args)
end
end
end
end
end
return cmd