diff options
author | George Hazan <george.hazan@gmail.com> | 2016-04-13 15:08:47 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-04-13 15:08:47 +0000 |
commit | fdc5bdfae8a4a70cfd91ec0a8554005a3c0bbae2 (patch) | |
tree | 8218d1ecb0d5306907f8809bd0b714126c28e675 /protocols/JabberG/src/jabber_proto.cpp | |
parent | e3a9aa77869d8175d8a8483be6f1a976b5c0e1c4 (diff) |
sorted lists are used now in Jabber instead of linear database lookup
git-svn-id: http://svn.miranda-ng.org/main/trunk@16642 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_proto.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_proto.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp index d9fca6c2d4..57025c09b5 100644 --- a/protocols/JabberG/src/jabber_proto.cpp +++ b/protocols/JabberG/src/jabber_proto.cpp @@ -245,6 +245,8 @@ int CJabberProto::OnModulesLoadedEx(WPARAM, LPARAM) if (jid == NULL)
continue;
+ ListAdd(isChatRoom(hContact) ? LIST_CHATROOM : LIST_ROSTER, jid, hContact);
+
TCHAR *resourcepos = _tcschr(jid, '/');
if (resourcepos != NULL)
*resourcepos = '\0';
@@ -622,11 +624,11 @@ int __cdecl CJabberProto::GetInfo(MCONTACT hContact, int /*infoType*/) if (bHasResource && (tmpItem = ListGetItemPtr(LIST_CHATROOM, szBareJid))) {
pResourceStatus him(tmpItem->findResource(szBareJid+mir_tstrlen(szBareJid)+1));
if (him) {
- item = ListAdd(LIST_VCARD_TEMP, jid);
+ item = ListAdd(LIST_VCARD_TEMP, jid, hContact);
ListAddResource(LIST_VCARD_TEMP, jid, him->m_iStatus, him->m_tszStatusMessage, him->m_iPriority);
}
}
- else item = ListAdd(LIST_VCARD_TEMP, jid);
+ else item = ListAdd(LIST_VCARD_TEMP, jid, hContact);
}
if (item != NULL) {
|