1
0

Links sent via chat messages are clickable.

Fixes #658.
This commit is contained in:
madmaxoft
2014-02-16 23:51:32 +01:00
parent 4a24e39ac1
commit ea55a22a71
4 changed files with 34 additions and 9 deletions

View File

@@ -299,6 +299,21 @@ void cCompositeChat::SetMessageType(eMessageType a_MessageType)
void cCompositeChat::UnderlineUrls(void)
{
for (cParts::iterator itr = m_Parts.begin(), end = m_Parts.end(); itr != end; ++itr)
{
if ((*itr)->m_PartType == ptUrl)
{
(*itr)->m_Style.append("u");
}
} // for itr - m_Parts[]
}
void cCompositeChat::AddStyle(AString & a_Style, const AString & a_AddStyle)
{
if (a_AddStyle.empty())