ctf_chat: Add missing priv check in default chat message handler
parent
48545e39e8
commit
719ab291ce
|
@ -441,6 +441,10 @@ else
|
|||
end
|
||||
end
|
||||
|
||||
if not minetest.check_player_privs(name, {shout = true}) then
|
||||
minetest.chat_send_player("-!- You don't have permission to shout.")
|
||||
return true
|
||||
end
|
||||
local tcolor = ctf_colors.get_color(ctf.player(name))
|
||||
minetest.chat_send_all(minetest.colorize(tcolor.css, "<" .. name .. "> ") .. message)
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue