Skip to content

Commit

Permalink
Send flag capture message to chat in addition to IRC
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Aug 18, 2024
1 parent 328c3c8 commit f1e055e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/ctf/ctf_modebase/features.lua
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,7 @@ return {
end

ctf_modebase.announce(string.format("Player %s (team %s)%s", pname, pteam, text))
minetest.chat_send_all(string.format("Player %s (team %s)%s", pname, pteam, text))

local team_score = team_scores[pteam].score
local healers = ctf_combat_mode.get_healers(pname)
Expand All @@ -715,7 +716,6 @@ return {

teams_left = teams_left - #teamnames


if teams_left <= 1 then
local capture_text = "Player %s captured and got %d points"
if many_teams then
Expand Down

0 comments on commit f1e055e

Please sign in to comment.