From a0341d561a177bcd1ed45229129065556c261049 Mon Sep 17 00:00:00 2001 From: Heiko Hund Date: Sat, 27 May 2017 03:15:56 +0200 Subject: Add rank prefix and suffix to player name in chat (#3730) Fixes issue #1721 --- src/ClientHandle.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ClientHandle.cpp') 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); -- cgit v1.2.3