forked from minetest-mods/xban2
Fix /xban_record showing last banned time for all entries.
This commit is contained in:
parent
ed621c5ce0
commit
19d92df3bc
4
init.lua
4
init.lua
|
@ -234,12 +234,12 @@ minetest.register_chatcommand("xban_record", {
|
||||||
local msg
|
local msg
|
||||||
if rec.expires then
|
if rec.expires then
|
||||||
msg = ("%s, Expires: %s"):format(
|
msg = ("%s, Expires: %s"):format(
|
||||||
rec.reason, os.date("%c", e.expires))
|
rec.reason, os.date("%c", rec.expires))
|
||||||
else
|
else
|
||||||
msg = rec.reason
|
msg = rec.reason
|
||||||
end
|
end
|
||||||
minetest.chat_send_player(name,
|
minetest.chat_send_player(name,
|
||||||
("[%s]: %s"):format(os.date("%c", e.time), msg))
|
("[%s]: %s"):format(os.date("%c", rec.time), msg))
|
||||||
end
|
end
|
||||||
if e.last_pos then
|
if e.last_pos then
|
||||||
minetest.chat_send_player(name,
|
minetest.chat_send_player(name,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user