Skip to content

Commit

Permalink
Fix save code not being censored in streamer mode
Browse files Browse the repository at this point in the history
Closed ddnet#8790
  • Loading branch information
ChillerDragon committed Aug 23, 2024
1 parent 0013615 commit 56b56ef
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 56b56ef

Please sign in to comment.