diff options
Diffstat (limited to 'protocols/JabberG/src/jabber_disco.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_disco.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/protocols/JabberG/src/jabber_disco.cpp b/protocols/JabberG/src/jabber_disco.cpp index c156b2b0dc..4e1a452f77 100644 --- a/protocols/JabberG/src/jabber_disco.cpp +++ b/protocols/JabberG/src/jabber_disco.cpp @@ -1403,12 +1403,9 @@ void CJabberProto::ServiceDiscoveryShowMenu(CJabberSDNode *pNode, HTREELISTITEM {
TCHAR *jid = pNode->GetJid();
MCONTACT hContact = HContactFromJID(pNode->GetJid());
- if (!hContact) {
- JABBER_SEARCH_RESULT jsr={0};
- _tcsncpy_s(jsr.jid, jid, _TRUNCATE);
- jsr.hdr.cbSize = sizeof(JABBER_SEARCH_RESULT);
- hContact = (MCONTACT)CallProtoService(m_szModuleName, PS_ADDTOLIST, PALF_TEMPORARY, (LPARAM)&jsr);
- }
+ if (!hContact)
+ hContact = AddToListByJID(jid, PALF_TEMPORARY);
+
if (ListGetItemPtr(LIST_VCARD_TEMP, pNode->GetJid()) == NULL) {
JABBER_LIST_ITEM *item = ListAdd(LIST_VCARD_TEMP, pNode->GetJid());
item->bUseResource = TRUE;
|