1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-05 10:00:26 +01:00

[xban2] Update

This commit is contained in:
LeMagnesium 2015-10-01 21:09:05 +02:00
parent eb896a1274
commit d8e2607e7a

View File

@ -140,12 +140,12 @@ function xban.get_record(player)
end
local record = { }
for _, rec in ipairs(e.record) do
local msg
local msg = rec.reason or "No reason given."
if rec.expires then
msg = ("%s, Expires: %s"):format(
rec.reason, os.date("%c", e.expires))
else
msg = rec.reason
msg = msg..(", Expires: %s"):format(os.date("%c", e.expires))
end
if rec.source then
msg = msg..", Source: "..rec.source
end
table.insert(record, ("[%s]: %s"):format(os.date("%c", e.time), msg))
end
@ -321,5 +321,7 @@ minetest.after(SAVE_INTERVAL, save_db)
load_db()
xban.db = db
minetest.after(1, check_temp_bans)
dofile(xban.MP.."/dbimport.lua")
dofile(xban.MP.."/gui.lua")