From f530c7201492f58c6aeb35a0d8b96ddea1f033a2 Mon Sep 17 00:00:00 2001 From: tuxmain Date: Mon, 11 Jul 2022 12:36:41 +0200 Subject: [PATCH] feat(mod): first join & server login msgs --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 5f439e2..48c1142 100644 --- a/init.lua +++ b/init.lua @@ -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)