From 17c113eeb4cf4a2a96f2bc73dbd86ce290e9d9e7 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Wed, 3 Jun 2015 18:52:38 +0000 Subject: VKontakte: fix for video and link attachments git-svn-id: http://svn.miranda-ng.org/main/trunk@13982 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/misc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/VKontakte') 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")) { -- cgit v1.2.3