diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-24 09:19:28 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-24 09:19:28 +0000 |
commit | b68aad07ca94035442309cf8c68b039573f949ca (patch) | |
tree | 8aecaab73d620460dc80bf827b6f14253cd102d7 /protocols/VKontakte/src/misc.cpp | |
parent | 1eec1e5f5b57fb56fbfeb56fc57777153c14df82 (diff) |
VKontakte:
add PopUp support
add AuthRequest (add as friend support)
version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@10569 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index d2fed8d7b8..f7856a5b4f 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -114,6 +114,13 @@ bool CVkProto::CheckJsonResult(AsyncHttpRequest *pReq, NETLIBHTTPREQUEST *reply, pReq->bNeedsRestart = true;
Sleep(500); //Pause for fix err
break;
+ case VKERR_HIMSELF_AS_FRIEND:
+ case VKERR_YOU_ON_BLACKLIST:
+ case VKERR_USER_ON_BLACKLIST:
+ CVkSendMsgParam *param = (CVkSendMsgParam*)pReq->pUserInfo;
+ if (param)
+ param->iCount = iErrorCode;
+ break;
}
return iErrorCode == 0;
@@ -231,6 +238,7 @@ AsyncHttpRequest::AsyncHttpRequest() m_bApiReq = true;
AddHeader("Connection", "keep-alive");
AddHeader("Accept-Encoding", "booo");
+ pUserInfo = NULL;
}
AsyncHttpRequest::AsyncHttpRequest(CVkProto *ppro, int iRequestType, LPCSTR _url, bool bSecure, VK_REQUEST_HANDLER pFunc)
@@ -256,6 +264,7 @@ AsyncHttpRequest::AsyncHttpRequest(CVkProto *ppro, int iRequestType, LPCSTR _url requestType = iRequestType;
m_pFunc = pFunc;
+ pUserInfo = NULL;
}
AsyncHttpRequest::~AsyncHttpRequest()
|