Add team name to the log
This commit is contained in:
parent
b70fb29a11
commit
e4e5997054
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user