diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-17 06:40:18 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-17 06:40:18 +0000 |
commit | 78390ccc676294d0fddce0dc9bb843b3d9fea8f5 (patch) | |
tree | 3ea68f9183f46c3b3ef253c27a03409c84f002fa /protocols/VKontakte/src/vk_proto.cpp | |
parent | 482d8abc53f4dd89898eaf31e26e3ffc8e77b5e4 (diff) |
VKontakte:
add basic search and adding in clist support
version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@10487 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp index 249f1da6fb..1e0a96bc65 100644 --- a/protocols/VKontakte/src/vk_proto.cpp +++ b/protocols/VKontakte/src/vk_proto.cpp @@ -331,10 +331,10 @@ int CVkProto::OnEvent(PROTOEVENTTYPE event, WPARAM wParam, LPARAM lParam) }
//////////////////////////////////////////////////////////////////////////////
-
HANDLE CVkProto::SearchBasic(const PROTOCHAR* id)
{
- return 0;
+ ForkThread(&CVkProto::SearchBasicThread, (void *) id);
+ return (HANDLE)1;
}
HANDLE CVkProto::SearchByEmail(const PROTOCHAR* email)
@@ -349,7 +349,13 @@ HANDLE CVkProto::SearchByName(const PROTOCHAR* nick, const PROTOCHAR* firstName, MCONTACT CVkProto::AddToList(int flags, PROTOSEARCHRESULT* psr)
{
- return NULL;
+ int uid = _ttoi(psr->id);
+ if (!uid)
+ return NULL;
+
+ MCONTACT hConnact = FindUser(uid, true);
+ RetrieveUserInfo(uid);
+ return hConnact;
}
int CVkProto::AuthRequest(MCONTACT hContact,const PROTOCHAR *message)
|