summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClientHandle.cpp')
-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);