summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/misc.cpp
diff options
context:
space:
mode:
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[] =