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
|
||||
if rec.expires then
|
||||
msg = ("%s, Expires: %s"):format(
|
||||
rec.reason, os.date("%c", e.expires))
|
||||
rec.reason, os.date("%c", rec.expires))
|
||||
else
|
||||
msg = rec.reason
|
||||
end
|
||||
minetest.chat_send_player(name,
|
||||
("[%s]: %s"):format(os.date("%c", e.time), msg))
|
||||
("[%s]: %s"):format(os.date("%c", rec.time), msg))
|
||||
end
|
||||
if e.last_pos then
|
||||
minetest.chat_send_player(name,
|
||||
|
Loading…
Reference in New Issue
Block a user