summaryrefslogtreecommitdiff
path: root/xban2/importers
diff options
context:
space:
mode:
Diffstat (limited to 'xban2/importers')
-rw-r--r--xban2/importers/v2.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/xban2/importers/v2.lua b/xban2/importers/v2.lua
index fd29966..739063f 100644
--- a/xban2/importers/v2.lua
+++ b/xban2/importers/v2.lua
@@ -8,19 +8,19 @@ function xban.importers.v2()
local text = f:read("*a")
f:close()
local db = minetest.deserialize(text)
- for _, e in ipairs(db) do
- for name in pairs(e.names) do
+ for _, ent in ipairs(db) do
+ for name in pairs(ent.names) do
local entry = xban.find_entry(name, true)
if entry.source ~= "xban:importer_v2" then
for nm in pairs(e.names) do
entry.names[nm] = true
end
- if e.banned then
+ if ent.banned then
entry.banned = true
entry.reason = e.banned
entry.source = "xban:importer_v2"
- entry.time = e.time
- entry.expires = e.expires
+ entry.time = ent.time
+ entry.expires = ent.expires
table.insert(entry.record, {
source = entry.source,
reason = entry.reason,