QTfrontend/ui/widget/chatwidget.cpp
changeset 13697 70c8feb81d35
parent 13678 1aa5e884326a
child 13848 7c333cffd63e
--- a/QTfrontend/ui/widget/chatwidget.cpp	Sat Aug 25 12:12:15 2018 +0200
+++ b/QTfrontend/ui/widget/chatwidget.cpp	Sat Aug 25 17:43:29 2018 +0200
@@ -373,8 +373,8 @@
 // it as host would convert it to it's lower case variant
 QString HWChatWidget::linkedNick(const QString & nickname)
 {
-    // '[' is reserved character used for fake player names in special server messages
-    if ((nickname != m_userNick) && (!nickname.contains('[')))
+    // '[' and '(' are reserved characters used for fake player names in special server messages
+    if ((nickname != m_userNick) && (!nickname.startsWith('[')) && (!nickname.startsWith('(')))
         // linked nick
         return QString("<a href=\"hwnick://?%1\" class=\"nick\">%2</a>").arg(
                    QString(nickname.toUtf8().toBase64())).arg(nickname.toHtmlEscaped());