From dff4eee6c7d672e3f818b115d4bcd764c8c62881 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 28 Nov 2015 02:16:14 +0000 Subject: [PATCH] Better logging --- ctf_chat/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ctf_chat/init.lua b/ctf_chat/init.lua index 85d743d..270f034 100644 --- a/ctf_chat/init.lua +++ b/ctf_chat/init.lua @@ -255,6 +255,9 @@ minetest.register_chatcommand("t", { local team = ctf.team(tname) if team then minetest.log("action", tname .. "<" .. name .. "> ** ".. param .. " **") + if minetest.global_exists("chatplus") then + chatplus.log(tname .. "<" .. name .. "> ** ".. param .. " **") + end for username, to in pairs(team.players) do minetest.chat_send_player(username, tname .. "<" .. name .. "> ** " .. param .. " **")