Fixed chat highlighting

This commit is contained in:
east 2015-08-17 21:35:12 +02:00
parent 6ab2a558b3
commit 8dec8d7890

View file

@ -323,7 +323,7 @@ bool CChat::LineShouldHighlight(const char *pLine, const char *pName)
if (pHL)
{
int Length = str_length(m_pClient->m_aClients[m_pClient->Client()->m_LocalIDs[0]].m_aName);
int Length = str_length(pName);
if((pLine == pHL || pHL[-1] == ' ') && (pHL[Length] == 0 || pHL[Length] == ' ' || pHL[Length] == '.' || pHL[Length] == '!' || pHL[Length] == ',' || pHL[Length] == '?' || pHL[Length] == ':'))
return true;