From 1a1d37822ebbbd26b3a91cb8651792836f9bc9cb Mon Sep 17 00:00:00 2001 From: TSafa-23 <54854228+TSafa-23@users.noreply.github.com> Date: Thu, 14 Nov 2019 19:31:26 -0600 Subject: [PATCH] Remove redundant /all chat-command (#507) --- mods/ctf/ctf_chat/init.lua | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/mods/ctf/ctf_chat/init.lua b/mods/ctf/ctf_chat/init.lua index 514a73a..46c48aa 100644 --- a/mods/ctf/ctf_chat/init.lua +++ b/mods/ctf/ctf_chat/init.lua @@ -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",