X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatline-old.cpp;h=b3b16832f2642c3a52f8cbaec3251bbf1721f26d;hb=521a9e7155173db954ea5f32c93dd6933cd7aeda;hp=c26da15a7dc3067e1a75689fde407e19c359a4f0;hpb=6a7da771f7cecc994564434097e2bd9dba68627e;p=quassel.git diff --git a/src/qtui/chatline-old.cpp b/src/qtui/chatline-old.cpp index c26da15a..b3b16832 100644 --- a/src/qtui/chatline-old.cpp +++ b/src/qtui/chatline-old.cpp @@ -42,12 +42,7 @@ ChatLine::~ChatLine() { } void ChatLine::formatMsg(Message msg) { - const Network *net = Client::network(msg.bufferInfo().networkId()); - if(net) { - QRegExp nickRegExp("^(.*\\W)?"+net->myNick()+"(\\W.*)?$"); - if((msg.type() == Message::Plain || msg.type() == Message::Notice || msg.type() == Message::Action) && nickRegExp.exactMatch(msg.text())) - isHighlight = true; - } + isHighlight = msg.flags() & Message::Highlight; QTextOption tsOption, senderOption, textOption; styledTimeStamp = QtUi::style()->styleString(msg.formattedTimestamp()); styledSender = QtUi::style()->styleString(msg.formattedSender());