mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +00:00
Merge pull request #8791 from ChillerDragon/pr_censor_save_code_fix
Fix save code not being censored in streamer mode
This commit is contained in:
commit
37fd57ccb8
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue