summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/misc.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-08-27 18:45:45 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-08-27 18:45:45 +0000
commitee46b2da0a78717c9ac1ca0739fe7f1f666377ce (patch)
tree894530e91c09ce757e3870e6ad41b5f01e542554 /protocols/VKontakte/src/misc.cpp
parentd7d76938e05d7170668f4f950c40d65c47d1bb64 (diff)
VKontakte:
- fix for long chat messages; - fix for retrieveing user info on adding git-svn-id: http://svn.miranda-ng.org/main/trunk@10332 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r--protocols/VKontakte/src/misc.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 58d3b356ba..a2fae6f2d1 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -51,6 +51,7 @@ MCONTACT CVkProto::FindUser(LONG dwUserid, bool bCreate)
CallService(MS_PROTO_ADDTOCONTACT, (WPARAM)hNewContact, (LPARAM)m_szModuleName);
setDword(hNewContact, "ID", dwUserid);
db_set_ts(hNewContact, "CList", "Group", m_defaultGroup);
+ RetrieveUserInfo(dwUserid);
return hNewContact;
}
@@ -109,6 +110,16 @@ void CVkProto::OnReceiveSmth(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)
CheckJsonResponse(pReq, reply, pRoot);
}
+void MyHtmlDecode(CMStringW &str)
+{
+ str.Replace(_T("<br>"), _T("\n"));
+ str.Replace(_T("&amp;"), _T("&"));
+ str.Replace(_T("&pos;"), _T("\'"));
+ str.Replace(_T("&gt;"), _T(">"));
+ str.Replace(_T("&lt;"), _T("<"));
+ str.Replace(_T("&quot;"), _T("\""));
+}
+
/////////////////////////////////////////////////////////////////////////////////////////
static IconItem iconList[] =