summaryrefslogtreecommitdiffstats
path: root/src/CompositeChat.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-02-16 23:51:32 +0100
committermadmaxoft <github@xoft.cz>2014-02-16 23:51:32 +0100
commitea55a22a71a6fd46877bc4b6b56d6205dd20608f (patch)
tree3effb7f1081a9930129d5f875af49d429c3a9211 /src/CompositeChat.cpp
parentImplemented cCompositeChat::ParseText(), incl. self-test. (diff)
downloadcuberite-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 '')
-rw-r--r--src/CompositeChat.cpp15
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())