Case-insensitive channel names for IRC. Fixed leaving admin players.

This commit is contained in:
lotodore
2007-10-25 19:50:43 +00:00
parent dc74186b5a
commit f3556bff57
2 changed files with 16 additions and 1 deletions
@@ -114,6 +114,12 @@ void LobbyChat::playerLeft(QString playerName)
QList<QTreeWidgetItem *> tmpList(myLobby->treeWidget_NickList->findItems(playerName, Qt::MatchExactly));
if (!tmpList.empty())
myLobby->treeWidget_NickList->takeTopLevelItem(myLobby->treeWidget_NickList->indexOfTopLevelItem(tmpList.front()));
else
{
tmpList = myLobby->treeWidget_NickList->findItems("@" + playerName, Qt::MatchExactly);
if (!tmpList.empty())
myLobby->treeWidget_NickList->takeTopLevelItem(myLobby->treeWidget_NickList->indexOfTopLevelItem(tmpList.front()));
}
myLobby->treeWidget_NickList->sortItems(0, Qt::AscendingOrder);