Added @ back in

Added the @ back to the chat, this will help if a user does not have the
newest version of the client.
This commit is contained in:
Matt Lowe 2015-01-17 15:03:41 +01:00
parent 49d3ad73d5
commit ece56ff3f2

View file

@ -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());
}
}