Remove redundant /all chat-command (#507)

This commit is contained in:
TSafa-23 2019-11-14 19:31:26 -06:00 committed by ANAND
parent 47374a06db
commit 1a1d37822e

View file

@ -315,28 +315,6 @@ minetest.register_chatcommand("post", {
end,
})
minetest.register_chatcommand("all", {
params = "msg",
description = "Send a message on the global channel",
func = function(name, param)
if not ctf.setting("chat.global_channel") then
minetest.chat_send_player(name, "The global channel is disabled")
return
end
if ctf.player(name).team then
local tosend = ctf.player(name).team ..
" <" .. name .. "> " .. param
minetest.chat_send_all(tosend)
if minetest.global_exists("chatplus") then
chatplus.log(tosend)
end
else
minetest.chat_send_all("<"..name.."> "..param)
end
end
})
minetest.register_chatcommand("t", {
params = "msg",
description = "Send a message on the team channel",