summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_thread.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-08-22 14:09:51 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-08-22 14:09:51 +0000
commit2234bcb0625bd4bb337b2fd08bfab0c10096b34e (patch)
treeffd5fa87aeecab87eb1d69a6693660e698566e36 /protocols/VKontakte/src/vk_thread.cpp
parent666032969fb65ccdea9fdbc85c43eadcb7ef754e (diff)
VK:
- nasty clutch to replace <br> with CRLF; - fix for sending long messages (patch by Elzor, edited); - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@10294 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_thread.cpp')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index ccb2c5e2fb..ebf5929b7a 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -477,7 +477,11 @@ void CVkProto::OnReceiveMessages(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe
if (isOut)
recv.flags |= PREF_SENT;
recv.timestamp = datetime;
- recv.tszMessage = ptszBody;
+
+ CMStringW szBody = ptszBody;
+ szBody.Replace(_T("<br>"),_T("\n"));
+ recv.tszMessage = (TCHAR *) szBody.c_str();
+
recv.lParam = isOut;
recv.pCustomData = szMid;
recv.cbCustomDataSize = (int)strlen(szMid);