diff options
Diffstat (limited to 'protocols/Icq10/src/proto.cpp')
-rw-r--r-- | protocols/Icq10/src/proto.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/protocols/Icq10/src/proto.cpp b/protocols/Icq10/src/proto.cpp index c039dd4585..05f9b5ce4f 100644 --- a/protocols/Icq10/src/proto.cpp +++ b/protocols/Icq10/src/proto.cpp @@ -98,17 +98,8 @@ MCONTACT CIcqProto::AddToList(int flags, PROTOSEARCHRESULT *psr) return 0; DWORD dwUin = _wtol(psr->id.w); - if (auto *p = FindContactByUIN(dwUin)) - return p->m_hContact; - - MCONTACT hContact = db_add_contact(); - Proto_AddToContact(hContact, m_szModuleName); - setDword(hContact, "UIN", dwUin); - { - mir_cslock l(m_csCache); - m_arCache.insert(new IcqCacheItem(dwUin, hContact)); - } + MCONTACT hContact = CreateContact(dwUin, true); if (psr->nick.w) setWString(hContact, "Nick", psr->nick.w); if (psr->firstName.w) @@ -116,7 +107,6 @@ MCONTACT CIcqProto::AddToList(int flags, PROTOSEARCHRESULT *psr) if (psr->lastName.w) setWString(hContact, "LastName", psr->lastName.w); - db_set_b(hContact, "CList", "NotOnList", 1); return hContact; } |