Fix crash on nil tname

master
rubenwardy 2015-12-18 03:34:49 +00:00
parent e4e5997054
commit cddcf97274
1 changed files with 1 additions and 1 deletions

View File

@ -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