From ece56ff3f2d24e904d5536f416ceaad6226171c6 Mon Sep 17 00:00:00 2001 From: Matt Lowe Date: Sat, 17 Jan 2015 15:03:41 +0100 Subject: [PATCH] Added @ back in Added the @ back to the chat, this will help if a user does not have the newest version of the client. --- cockatrice/src/chatview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/chatview.cpp b/cockatrice/src/chatview.cpp index d8f2ed42..3deffaba 100644 --- a/cockatrice/src/chatview.cpp +++ b/cockatrice/src/chatview.cpp @@ -183,7 +183,7 @@ void ChatView::appendMessage(QString message, QString sender, UserLevelFlags use int mentionIndex; while ((mentionIndex = message.toLower().indexOf(mention)) != -1) { cursor.insertText(message.left(mentionIndex), defaultFormat); - cursor.insertText(userName, mentionFormat); + cursor.insertText("@" + userName, mentionFormat); message = message.mid(mentionIndex + mention.size()); } }