equal
deleted
inserted
replaced
667 m_highlights.clear(); |
667 m_highlights.clear(); |
668 |
668 |
669 QString hlRegExp("^(.* )?%1[^-a-z0-9_]*( .*)?$"); |
669 QString hlRegExp("^(.* )?%1[^-a-z0-9_]*( .*)?$"); |
670 QRegExp whitespace("\\s"); |
670 QRegExp whitespace("\\s"); |
671 |
671 |
672 m_highlights.append(QRegExp(hlRegExp.arg(m_userNick))); |
672 m_highlights.append(QRegExp(hlRegExp.arg(m_userNick.toLower()))); |
673 |
673 |
674 QFile file(cfgdir->absolutePath() + "/" + m_userNick + "_highlight.txt"); |
674 QFile file(cfgdir->absolutePath() + "/" + m_userNick.toLower() + "_highlight.txt"); |
675 |
675 |
676 if (file.exists() && (file.open(QIODevice::ReadOnly | QIODevice::Text))) |
676 if (file.exists() && (file.open(QIODevice::ReadOnly | QIODevice::Text))) |
677 { |
677 { |
678 QTextStream in(&file); |
678 QTextStream in(&file); |
679 while (!in.atEnd()) |
679 while (!in.atEnd()) |
689 |
689 |
690 if (file.isOpen()) |
690 if (file.isOpen()) |
691 file.close(); |
691 file.close(); |
692 } |
692 } |
693 |
693 |
694 QFile file2(cfgdir->absolutePath() + "/" + m_userNick + "_hlregexp.txt"); |
694 QFile file2(cfgdir->absolutePath() + "/" + m_userNick.toLower() + "_hlregexp.txt"); |
695 |
695 |
696 if (file2.exists() && (file2.open(QIODevice::ReadOnly | QIODevice::Text))) |
696 if (file2.exists() && (file2.open(QIODevice::ReadOnly | QIODevice::Text))) |
697 { |
697 { |
698 QTextStream in(&file2); |
698 QTextStream in(&file2); |
699 while (!in.atEnd()) |
699 while (!in.atEnd()) |