QTfrontend/ui/widget/chatwidget.cpp
changeset 15445 3207dd5fdfd2
parent 15438 5fcdc072d706
child 15909 7409084d891f
child 16066 2b4f361e3891
equal deleted inserted replaced
15444:e0f148794328 15445:3207dd5fdfd2
   424     const QString & nick, const QString & str, const QString & cssClassPart, bool highlight)
   424     const QString & nick, const QString & str, const QString & cssClassPart, bool highlight)
   425 {
   425 {
   426     if(!m_usersModel)
   426     if(!m_usersModel)
   427         return;
   427         return;
   428 
   428 
       
   429     // don't show chat lines that are from ignored nicks
       
   430     if (m_usersModel->isFlagSet(nick, PlayersListModel::Ignore))
       
   431         return;
       
   432 
   429     bool isFriend = (!nick.isEmpty()) && m_usersModel->isFlagSet(nick, PlayersListModel::Friend);
   433     bool isFriend = (!nick.isEmpty()) && m_usersModel->isFlagSet(nick, PlayersListModel::Friend);
   430 
   434 
   431     QString cssClass = (isFriend ? "msg_Friend" : "msg_User") + cssClassPart;
   435     QString cssClass = (isFriend ? "msg_Friend" : "msg_User") + cssClassPart;
   432 
   436 
   433     addLine(cssClass, str, highlight);
   437     addLine(cssClass, str, highlight);