mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
added option to ignore unregistered users in chat; switched UserList data storage to QMap to speed up lookups; issue #28 fixed
This commit is contained in:
parent
ff632911f2
commit
cdda3f15a0
10 changed files with 191 additions and 43 deletions
|
|
@ -123,7 +123,7 @@ void TabUserLists::ignoreListReceived(const QList<ServerInfo_User> &_ignoreList)
|
|||
void TabUserLists::processAddToListEvent(const Event_AddToList &event)
|
||||
{
|
||||
const ServerInfo_User &info = event.user_info();
|
||||
bool online = allUsersList->userInList(QString::fromStdString(info.name()));
|
||||
bool online = allUsersList->getUsers().contains(QString::fromStdString(info.name()));
|
||||
QString list = QString::fromStdString(event.list_name());
|
||||
UserList *userList = 0;
|
||||
if (list == "buddy")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue