summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorHeiko Hund <heiko.hund@sophos.com>2017-05-27 03:15:56 +0200
committerworktycho <work.tycho@gmail.com>2017-05-27 03:15:56 +0200
commita0341d561a177bcd1ed45229129065556c261049 (patch)
treec67f40459dfe67a331511ac6255d9fb2cae9f87c /src/ClientHandle.cpp
parentExported boat (diff)
downloadcuberite-a0341d561a177bcd1ed45229129065556c261049.tar
cuberite-a0341d561a177bcd1ed45229129065556c261049.tar.gz
cuberite-a0341d561a177bcd1ed45229129065556c261049.tar.bz2
cuberite-a0341d561a177bcd1ed45229129065556c261049.tar.lz
cuberite-a0341d561a177bcd1ed45229129065556c261049.tar.xz
cuberite-a0341d561a177bcd1ed45229129065556c261049.tar.zst
cuberite-a0341d561a177bcd1ed45229129065556c261049.zip
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 17b93a62c..efd592405 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1562,7 +1562,11 @@ void cClientHandle::HandleChat(const AString & a_Message)
{
Color.clear();
}
- Msg.AddTextPart(AString("<") + m_Player->GetName() + "> ", Color);
+ Msg.AddTextPart("<");
+ Msg.ParseText(m_Player->GetPrefix());
+ Msg.AddTextPart(m_Player->GetName(), Color);
+ Msg.ParseText(m_Player->GetSuffix());
+ Msg.AddTextPart("> ");
Msg.ParseText(Message);
Msg.UnderlineUrls();
cRoot::Get()->BroadcastChat(Msg);