From cddcf972743ac679b2520f5ce816d1e526e3e43c Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 18 Dec 2015 03:34:49 +0000 Subject: [PATCH] Fix crash on nil tname --- ctf_chat/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctf_chat/init.lua b/ctf_chat/init.lua index 7dd0f01..3fc3e0d 100644 --- a/ctf_chat/init.lua +++ b/ctf_chat/init.lua @@ -286,7 +286,7 @@ minetest.register_chatcommand("t", { -- Chat plus stuff if minetest.global_exists("chatplus") then function chatplus.log_message(from, msg) - local tname = ctf.player(from).team + local tname = ctf.player(from).team or "" chatplus.log(tname .. "<" .. from .. "> " .. msg) end