mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-26 01:30:29 +01:00
[xban2] Update
This commit is contained in:
parent
eb896a1274
commit
d8e2607e7a
@ -140,12 +140,12 @@ function xban.get_record(player)
|
|||||||
end
|
end
|
||||||
local record = { }
|
local record = { }
|
||||||
for _, rec in ipairs(e.record) do
|
for _, rec in ipairs(e.record) do
|
||||||
local msg
|
local msg = rec.reason or "No reason given."
|
||||||
if rec.expires then
|
if rec.expires then
|
||||||
msg = ("%s, Expires: %s"):format(
|
msg = msg..(", Expires: %s"):format(os.date("%c", e.expires))
|
||||||
rec.reason, os.date("%c", e.expires))
|
end
|
||||||
else
|
if rec.source then
|
||||||
msg = rec.reason
|
msg = msg..", Source: "..rec.source
|
||||||
end
|
end
|
||||||
table.insert(record, ("[%s]: %s"):format(os.date("%c", e.time), msg))
|
table.insert(record, ("[%s]: %s"):format(os.date("%c", e.time), msg))
|
||||||
end
|
end
|
||||||
@ -321,5 +321,7 @@ minetest.after(SAVE_INTERVAL, save_db)
|
|||||||
load_db()
|
load_db()
|
||||||
xban.db = db
|
xban.db = db
|
||||||
|
|
||||||
|
minetest.after(1, check_temp_bans)
|
||||||
|
|
||||||
dofile(xban.MP.."/dbimport.lua")
|
dofile(xban.MP.."/dbimport.lua")
|
||||||
dofile(xban.MP.."/gui.lua")
|
dofile(xban.MP.."/gui.lua")
|
||||||
|
Loading…
Reference in New Issue
Block a user