updated init lua

should work now
This commit is contained in:
tigercoding56 2022-10-23 16:03:20 +00:00 committed by GitHub
parent fe12b598ff
commit 2368845173
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -384,9 +384,22 @@ local function load_db()
else
local wwe = entry
wwe.expires = now + MAX_BAN_TIME
table.insert(tempbans, )
table.insert(tempbans, entry)
end
end
local i = 1
while i <= #db do
if not db[i].banned then
-- not banned, remove from db
table.remove(db, i)
else
-- banned, hold entry back
i = i + 1
if not db[i].expires then
db[i].expires = now + MAX_BAN_TIME
end
end
end
minetest.register_chatcommand("xban_cleanup", {