Log /me command when used and fix bug

This commit is contained in:
LoneWolfHT 2021-03-18 19:03:07 -07:00 committed by GitHub
parent ebd332a3c6
commit 96147c7b97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -323,6 +323,8 @@ end
table.insert(minetest.registered_on_chat_messages, 1, handler)
minetest.registered_chatcommands["me"].func = function(name, param)
me_func(name, param)
if ctf.player(name).team then
local tcolor = ctf_colors.get_color(ctf.player(name))
name = minetest.colorize(tcolor.css, "* " .. name)
@ -330,6 +332,7 @@ minetest.registered_chatcommands["me"].func = function(name, param)
name = "* ".. name
end
me_func(name, param)
minetest.log("action", "[CHAT] "..name.." "..param)
minetest.chat_send_all(name .. " " .. param)
end