diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-25 13:13:27 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-25 13:13:27 +0000 |
commit | 74d336f4167ae6f7e32bc6bc51f1e97b1524e3a0 (patch) | |
tree | 7aeb94d5c36785669391d7b1ff6de09fbc921fd1 /protocols/VKontakte/src/vk_thread.cpp | |
parent | de497674186d02d6752de6d64ed978cca6dccbc5 (diff) |
VKontakte: AuthState plugin support
git-svn-id: http://svn.miranda-ng.org/main/trunk@10587 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_thread.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index 3804fbe525..3735e8384a 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -428,7 +428,7 @@ void CVkProto::OnReceiveFriends(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq LIST<void> arContacts(10, PtrKeySortT);
for (MCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName)){
- db_unset(hContact, m_szModuleName, "friend");
+ db_unset(hContact, m_szModuleName, "Auth");
if (bCleanContacts&&!isChatRoom(hContact))
arContacts.insert((HANDLE)hContact);
}
@@ -445,7 +445,7 @@ void CVkProto::OnReceiveFriends(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq MCONTACT hContact = FindUser(_ttoi(szValue), true);
arContacts.remove((HANDLE)hContact);
- setByte(hContact, "friend", 1);
+ setByte(hContact, "Auth", 0);
szValue = json_as_string(json_get(pInfo, "first_name"));
if (szValue) {
@@ -929,7 +929,7 @@ void CVkProto::OnReceiveDeleteFriend(NETLIBHTTPREQUEST* reply, AsyncHttpRequest* MsgPopup(param->hContact, TranslateT("Friend request suggestion for the user deleted"), _T(""));
break;
}
- db_unset(param->hContact, m_szModuleName, "friend");
+ db_unset(param->hContact, m_szModuleName, "Auth");
}
}
delete param;
|