mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
More chat highlighting
This commit is contained in:
parent
a90b37544a
commit
64c29fd509
|
@ -303,7 +303,7 @@ void CChat::AddLine(int ClientID, int Team, const char *pLine)
|
|||
if(pHL)
|
||||
{
|
||||
int Length = str_length(m_pClient->m_aClients[m_pClient->m_Snap.m_LocalClientID].m_aName);
|
||||
if((pLine == pHL || pHL[-1] == ' ') && (pHL[Length] == 0 || pHL[Length] == ' ' || (pHL[Length] == ':' && pHL[Length+1] == ' ')))
|
||||
if((pLine == pHL || pHL[-1] == ' ') && (pHL[Length] == 0 || pHL[Length] == ' ' || pHL[Length] == '.' || pHL[Length] == '!' || pHL[Length] == ',' || pHL[Length] == '?' || (pHL[Length] == ':' && pHL[Length+1] == ' ')))
|
||||
Highlighted = true;
|
||||
}
|
||||
m_aLines[m_CurrentLine].m_Highlighted = Highlighted;
|
||||
|
|
Loading…
Reference in a new issue