Skip to content

Commit

Permalink
Change last-login command to show player name in output (#10263)
Browse files Browse the repository at this point in the history
  • Loading branch information
Emojigit committed Aug 6, 2020
1 parent f92a393 commit abfea69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/game/chat.lua
Expand Up @@ -1070,10 +1070,10 @@ core.register_chatcommand("last-login", {
local pauth = core.get_auth_handler().get_auth(param)
if pauth and pauth.last_login and pauth.last_login ~= -1 then
-- Time in UTC, ISO 8601 format
return true, "Last login time was " ..
return true, param.."'s last login time was " ..
os.date("!%Y-%m-%dT%H:%M:%SZ", pauth.last_login)
end
return false, "Last login time is unknown"
return false, param.."'s last login time is unknown"
end,
})

Expand Down

0 comments on commit abfea69

Please sign in to comment.