Skip to content

Commit

Permalink
Merge pull request ddnet#8791 from ChillerDragon/pr_censor_save_code_fix
Browse files Browse the repository at this point in the history
Fix save code not being censored in streamer mode
  • Loading branch information
def- authored Aug 23, 2024
2 parents 0013615 + 56b56ef commit 37fd57c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/game/client/components/chat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,11 @@ void CChat::OnPrepareLines(float y)
const char *pText = Line.m_aText;
if(Config()->m_ClStreamerMode && Line.m_ClientId == SERVER_MSG)
{
if(str_startswith(Line.m_aText, "Team save in progress. You'll be able to load with '/load") && str_endswith(Line.m_aText, "if it fails"))
if(str_startswith(Line.m_aText, "Team save in progress. You'll be able to load with '/load ") && str_endswith(Line.m_aText, "'"))
{
pText = "Team save in progress. You'll be able to load with '/load ***'";
}
else if(str_startswith(Line.m_aText, "Team save in progress. You'll be able to load with '/load") && str_endswith(Line.m_aText, "if it fails"))
{
pText = "Team save in progress. You'll be able to load with '/load ***' if save is successful or with '/load *** *** ***' if it fails";
}
Expand Down

0 comments on commit 37fd57c

Please sign in to comment.