diff options
author | madmaxoft <github@xoft.cz> | 2014-02-16 23:51:32 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-02-16 23:51:32 +0100 |
commit | ea55a22a71a6fd46877bc4b6b56d6205dd20608f (patch) | |
tree | 3effb7f1081a9930129d5f875af49d429c3a9211 /src/CompositeChat.cpp | |
parent | Implemented cCompositeChat::ParseText(), incl. self-test. (diff) | |
download | cuberite-ea55a22a71a6fd46877bc4b6b56d6205dd20608f.tar cuberite-ea55a22a71a6fd46877bc4b6b56d6205dd20608f.tar.gz cuberite-ea55a22a71a6fd46877bc4b6b56d6205dd20608f.tar.bz2 cuberite-ea55a22a71a6fd46877bc4b6b56d6205dd20608f.tar.lz cuberite-ea55a22a71a6fd46877bc4b6b56d6205dd20608f.tar.xz cuberite-ea55a22a71a6fd46877bc4b6b56d6205dd20608f.tar.zst cuberite-ea55a22a71a6fd46877bc4b6b56d6205dd20608f.zip |
Diffstat (limited to 'src/CompositeChat.cpp')
-rw-r--r-- | src/CompositeChat.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/CompositeChat.cpp b/src/CompositeChat.cpp index 1893585f6..3eec35657 100644 --- a/src/CompositeChat.cpp +++ b/src/CompositeChat.cpp @@ -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()) |