diff -r c06b7e2eb7a4 -r efe2e2f7cabf QTfrontend/ui/widget/chatwidget.cpp --- a/QTfrontend/ui/widget/chatwidget.cpp Wed Oct 26 05:57:00 2011 +0200 +++ b/QTfrontend/ui/widget/chatwidget.cpp Wed Oct 26 11:50:03 2011 +0200 @@ -603,7 +603,7 @@ // clear and re compile regexp for highlighting m_highlights.clear(); - QString hlRegExp("^(.* )?%1(( |[^-a-z0-9_]( |$)).*)?$"); + QString hlRegExp("^(.* )?%1[^-a-z0-9_]*( .*)?$"); QRegExp whitespace("\\s"); m_highlights.append(QRegExp(hlRegExp.arg(m_userNick)));