CVS commit by strojil: Highlight incoming message only if displayName for current user is not empty M +1 -1 kopetemessagemanager.cpp 1.170 --- kdenonbeta/kopete/libkopete/kopetemessagemanager.cpp #1.169:1.170 @@ -216,5 +216,5 @@ void KopeteMessageManager::appendMessage if( msg.direction() == KopeteMessage::Inbound ) { - if( KopetePrefs::prefs()->highlightEnabled() && msg.plainBody().contains( QRegExp(QString::fromLatin1("\\b(%1)\\b").arg(user()->displayName()),false) ) ) + if( KopetePrefs::prefs()->highlightEnabled() && !user()->displayName().isEmpty() && msg.plainBody().contains( QRegExp(QString::fromLatin1("\\b(%1)\\b").arg(user()->displayName()),false) ) ) msg.setImportance( KopeteMessage::Highlight );