summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_files.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-12-15 06:12:18 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-12-15 06:12:18 +0000
commit27a37d3d9753b378fa85cce0f7fa3e2de8e35a57 (patch)
treea649ad6cb45d7cf3af8a79f629ef920f595dc6fb /protocols/VKontakte/src/vk_files.cpp
parentaaba011d2a0a37bca3e12514d0e9abc5da3f742d (diff)
VKontakte:
fix for warning C4121 in AsyncHttpRequest struct fix for TCHAR in SetMirVer add vk feeds support (wall) – part 1 git-svn-id: http://svn.miranda-ng.org/main/trunk@11430 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_files.cpp')
-rw-r--r--protocols/VKontakte/src/vk_files.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_files.cpp b/protocols/VKontakte/src/vk_files.cpp
index f20fc3760d..5399ba4b04 100644
--- a/protocols/VKontakte/src/vk_files.cpp
+++ b/protocols/VKontakte/src/vk_files.cpp
@@ -72,7 +72,8 @@ CVkFileUploadParam::VKFileType CVkFileUploadParam::GetType()
HANDLE CVkProto::SendFile(MCONTACT hContact, const PROTOCHAR *desc, PROTOCHAR **files)
{
debugLogA("CVkProto::SendFile");
- if (!IsOnline())
+ LONG userID = getDword(hContact, "ID", -1);
+ if (!IsOnline() || userID == -1 || userID == VK_FEED_USER)
return (HANDLE)0;
CVkFileUploadParam *fup = new CVkFileUploadParam(hContact, desc, files);
ForkThread(&CVkProto::SendFileThread, (void *)fup);
@@ -348,7 +349,7 @@ void CVkProto::OnReciveUploadFile(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pR
}
LONG userID = getDword(fup->hContact, "ID", -1);
- if (userID == -1) {
+ if (userID == -1 || userID == VK_FEED_USER) {
SendFileFiled(fup);
return;
}