equal
deleted
inserted
replaced
961 { |
961 { |
962 qWarning("Net: Bad LEFT message"); |
962 qWarning("Net: Bad LEFT message"); |
963 return; |
963 return; |
964 } |
964 } |
965 |
965 |
966 if (lst.size() < 3) |
966 if(!m_playersModel->isFlagSet(lst[1], PlayersListModel::Ignore)) { |
967 emit chatStringFromNet(tr("%1 *** %2 has left").arg('\x03').arg(lst[1])); |
967 if (lst.size() < 3) |
968 else |
968 emit chatStringFromNet(tr("%1 *** %2 has left").arg('\x03').arg(lst[1])); |
969 { |
969 else |
970 QString leaveMsg = QString(lst[2]); |
970 { |
971 emit chatStringFromNet(tr("%1 *** %2 has left (%3)").arg('\x03').arg(lst[1]).arg(HWApplication::translate("server", leaveMsg.toLatin1().constData()))); |
971 QString leaveMsg = QString(lst[2]); |
|
972 emit chatStringFromNet(tr("%1 *** %2 has left (%3)").arg('\x03').arg(lst[1]).arg(HWApplication::translate("server", leaveMsg.toLatin1().constData()))); |
|
973 } |
972 } |
974 } |
973 m_playersModel->playerLeftRoom(lst[1]); |
975 m_playersModel->playerLeftRoom(lst[1]); |
974 return; |
976 return; |
975 } |
977 } |
976 } |
978 } |