diff --git a/mods/ctf/ctf/teams.lua b/mods/ctf/ctf/teams.lua index 5d79ef7..b23155a 100644 --- a/mods/ctf/ctf/teams.lua +++ b/mods/ctf/ctf/teams.lua @@ -242,24 +242,6 @@ function ctf.can_mod(player,team) return false end --- post a message to a team board -function ctf.post(team, msg) - if not ctf.team(team) then - return false - end - - if not ctf.team(team).log then - ctf.team(team).log = {} - end - - - ctf.log("team", "message posted to team board") - - table.insert(ctf.team(team).log, 1, msg) - - return true -end - -- Automatic Allocation function ctf.autoalloc(name, alloc_mode) alloc_mode = alloc_mode or ctf.setting("allocate_mode") diff --git a/mods/ctf/ctf_flag/flag_func.lua b/mods/ctf/ctf_flag/flag_func.lua index e5853f9..1beab69 100644 --- a/mods/ctf/ctf_flag/flag_func.lua +++ b/mods/ctf/ctf_flag/flag_func.lua @@ -21,16 +21,6 @@ local function do_capture(attname, flag, returned) ctf.action("flag", attname .. " picked up " .. flag_name) - -- Post to flag owner's board - ctf.post(team, { - msg = flag_name .. " has been taken by " .. attname .. " of ".. attacker.team, - icon="flag_red" }) - - -- Post to attacker's board - ctf.post(attacker.team, { - msg = attname .. " snatched '" .. flag_name .. "' from " .. team, - icon="flag_green"}) - -- Add to claimed list flag.claimed = { team = attacker.team, @@ -56,16 +46,6 @@ local function do_capture(attname, flag, returned) ctf.action("flag", attname .. " captured " .. flag_name) - -- Post to flag owner's board - ctf.post(team, { - msg = flag_name .. " has been captured by " .. attacker.team, - icon="flag_red"}) - - -- Post to attacker's board - ctf.post(attacker.team, { - msg = attname .. " captured '" .. flag_name .. "' from " .. team, - icon="flag_green"}) - -- Take flag if ctf.setting("flag.allow_multiple") then ctf_flag.delete(team, vector.new(flag))