Fix save code not being censored in streamer mode

Closed #8790
This commit is contained in:
ChillerDragon 2024-08-23 19:20:15 +08:00
parent 0013615da1
commit 56b56ef2b9

View file

@ -992,7 +992,11 @@ void CChat::OnPrepareLines(float y)
const char *pText = Line.m_aText; const char *pText = Line.m_aText;
if(Config()->m_ClStreamerMode && Line.m_ClientId == SERVER_MSG) 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"; pText = "Team save in progress. You'll be able to load with '/load ***' if save is successful or with '/load *** *** ***' if it fails";
} }