summaryrefslogtreecommitdiff
path: root/protocols/VKontakte
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2015-06-10 21:06:25 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2015-06-10 21:06:25 +0000
commitdbebfb7ec024599a1ef50c11692bb81506bc1347 (patch)
tree34285204985aa19add79b5fa9edc46620bd30fed /protocols/VKontakte
parent031b81f8764de5e566490248dbc4bb466c0b03e9 (diff)
VKontakte: fix attachments and forward messages in forward messages
git-svn-id: http://svn.miranda-ng.org/main/trunk@14108 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte')
-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 506fcad264..52731675b5 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -1149,7 +1149,7 @@ CMString CVkProto::GetFwdMessages(const JSONNode &jnMessages, BBCSupport iBBC)
CMString tszBody(jnMsg["body"].as_mstring());
const JSONNode &jnFwdMessages = jnMsg["fwd_messages"];
- if (!jnFwdMessages) {
+ if (!jnFwdMessages.isnull()) {
CMString tszFwdMessages = GetFwdMessages(jnFwdMessages, m_iBBCForAttachments);
if (!tszBody.IsEmpty())
tszFwdMessages = _T("\n") + tszFwdMessages;
@@ -1157,7 +1157,7 @@ CMString CVkProto::GetFwdMessages(const JSONNode &jnMessages, BBCSupport iBBC)
}
const JSONNode &jnAttachments = jnMsg["attachments"];
- if (!jnAttachments) {
+ if (!jnAttachments.isnull()) {
CMString tszAttachmentDescr = GetAttachmentDescr(jnAttachments, m_iBBCForAttachments);
if (!tszBody.IsEmpty())
tszAttachmentDescr = _T("\n") + tszAttachmentDescr;