equal
deleted
inserted
replaced
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); |