summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2015-06-03 18:52:38 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2015-06-03 18:52:38 +0000
commit17c113eeb4cf4a2a96f2bc73dbd86ce290e9d9e7 (patch)
treef4a43b54c532a714c6f1c6c5a9a1cbdf28390dd8 /protocols
parent0d1323b8c457b055784416e658740e9db518ca63 (diff)
VKontakte: fix for video and link attachments
git-svn-id: http://svn.miranda-ng.org/main/trunk@13982 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/VKontakte/src/misc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 435e68052a..34c4ef33ac 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -992,7 +992,7 @@ CMString CVkProto::GetAttachmentDescr(const JSONNode &jnAttachments, BBCSupport
}
else if (tszType ==_T("video")) {
const JSONNode &jnVideo = jnAttach["video"];
- if (jnVideo)
+ if (!jnVideo)
continue;
CMString tszTitle(jnVideo["title"].as_mstring());
@@ -1081,7 +1081,7 @@ CMString CVkProto::GetAttachmentDescr(const JSONNode &jnAttachments, BBCSupport
else
res.AppendFormat(_T("\n\t%s: %s"), TranslateT("Image"), tszImage);
- if (tszDescription)
+ if (!tszDescription.IsEmpty())
res.AppendFormat(_T("\n\t%s"), tszDescription);
}
else if (tszType == _T("gift")) {