# HG changeset patch # User sheepluva # Date 1321907003 -3600 # Node ID 98b806c1793db392e3a517d72beec73b62379463 # Parent 2cd9bcca0d9d550101409225bcec3fd0dc9ad278 this should fix the highlighting failz with non-lowercase player names like the one CheezeMonkey ran into. there is a workaround: in the user dir put the playername in _highlight.txt diff -r 2cd9bcca0d9d -r 98b806c1793d QTfrontend/ui/widget/chatwidget.cpp --- a/QTfrontend/ui/widget/chatwidget.cpp Thu Nov 01 01:05:35 2012 +0100 +++ b/QTfrontend/ui/widget/chatwidget.cpp Mon Nov 21 21:23:23 2011 +0100 @@ -532,9 +532,9 @@ QString hlRegExp("^(.* )?%1[^-a-z0-9_]*( .*)?$"); QRegExp whitespace("\\s"); - m_highlights.append(QRegExp(hlRegExp.arg(m_userNick))); + m_highlights.append(QRegExp(hlRegExp.arg(m_userNick.toLower()))); - QFile file(cfgdir->absolutePath() + "/" + m_userNick + "_highlight.txt"); + QFile file(cfgdir->absolutePath() + "/" + m_userNick.toLower() + "_highlight.txt"); if (file.exists() && (file.open(QIODevice::ReadOnly | QIODevice::Text))) { @@ -554,7 +554,7 @@ file.close(); } - QFile file2(cfgdir->absolutePath() + "/" + m_userNick + "_hlregexp.txt"); + QFile file2(cfgdir->absolutePath() + "/" + m_userNick.toLower() + "_hlregexp.txt"); if (file2.exists() && (file2.open(QIODevice::ReadOnly | QIODevice::Text))) {