feat(mod): first join & server login msgs

This commit is contained in:
Pascal Engélibert 2022-07-11 12:36:41 +02:00
parent 36a8791364
commit f530c72014
Signed by: tuxmain
GPG Key ID: 3504BC6D362F7DCA
1 changed files with 2 additions and 1 deletions

View File

@ -122,6 +122,7 @@ function MatrixChat:login()
self.userid = data.user_id
MatrixChat:sync()
minetest.log("action", "Matrix authenticated")
MatrixChat:send("*** Server connected to the matrix")
else
minetest.log("error", "Matrix login failed")
end
@ -252,7 +253,7 @@ end)
minetest.register_on_joinplayer(function(player)
local name = player:get_player_name()
MatrixChat:send("*** "..name.." joined the game")
MatrixChat:send("*** "..name.." joined the game"..(last_login == nil and " for the first time" or ""))
end)
minetest.register_on_leaveplayer(function(player, timed_out)