Fix /xban_record showing last banned time for all entries.

This commit is contained in:
Diego Martínez 2014-06-27 17:52:59 -03:00
parent ed621c5ce0
commit 19d92df3bc

View File

@ -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,