fix register_on_joinplayer last_login

This commit is contained in:
Pascal Engélibert 2022-12-09 00:50:21 +01:00
parent 1f0271099e
commit 047758767a
Signed by: tuxmain
GPG Key ID: 3504BC6D362F7DCA
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ minetest.register_on_shutdown(function()
MatrixChat:logout()
end)
minetest.register_on_joinplayer(function(player)
minetest.register_on_joinplayer(function(player, last_login)
local name = player:get_player_name()
MatrixChat:send("*** "..name.." joined the game"..(last_login == nil and " for the first time" or ""))
end)