diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-07-13 08:25:04 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-07-13 08:25:04 +0000 |
commit | 46d6a43726d64a0d7f808ad55557bfc56b89f97d (patch) | |
tree | 4fea102a4cf636196b8ae6f6da8cdd627a4d14fe /protocols/VKontakte/src/vk_messages.cpp | |
parent | ffb9e28990704074a63fc87d1a92621727a4c951 (diff) |
VKontakte:
add ‘Send VK-objects links as attachments’ option
move ‘Use non-standard popups for news and event notifications’ option to View page
version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@17090 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_messages.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_messages.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_messages.cpp b/protocols/VKontakte/src/vk_messages.cpp index f5a6726bc0..02c84f8e78 100644 --- a/protocols/VKontakte/src/vk_messages.cpp +++ b/protocols/VKontakte/src/vk_messages.cpp @@ -62,8 +62,16 @@ int CVkProto::SendMsg(MCONTACT hContact, int, const char *szMsg) if (StickerId)
pReq << INT_PARAM("sticker_id", StickerId);
- else
+ else {
pReq << CHAR_PARAM("message", szMsg);
+ if (m_vkOptions.bSendVKLinksAsAttachments) {
+ CMStringA szAttachments = GetAttachmentsFromMessage(szMsg);
+ if (!szAttachments.IsEmpty()) {
+ debugLogA("CVkProto::SendMsg Attachments = %s", szAttachments);
+ pReq << CHAR_PARAM("attachment", szAttachments);
+ }
+ }
+ }
if (!bIsChat)
pReq->pUserInfo = new CVkSendMsgParam(hContact, uMsgId);
|