Add team name to the log

master
rubenwardy 2015-12-18 01:49:37 +00:00
parent b70fb29a11
commit e4e5997054
1 changed files with 5 additions and 0 deletions

View File

@ -285,6 +285,11 @@ 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
chatplus.log(tname .. "<" .. from .. "> " .. msg)
end
chatplus.register_handler(function(from, to, msg)
if not ctf.setting("chat.team_channel") then
-- Send to global