summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_thread.cpp
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2017-03-12 01:00:46 +0500
committerElzorFox <elzorfox@ya.ru>2017-03-12 01:00:46 +0500
commit0d98bb5b0fafa594800048d76e37d37165818b05 (patch)
treee7af4e700037c61201105d6c167fbf4a2e96229f /protocols/VKontakte/src/vk_thread.cpp
parent4e925b0dd277356ac445bd8ca1bce51b65bbc77e (diff)
VKontakte: sent track visitor on online
Diffstat (limited to 'protocols/VKontakte/src/vk_thread.cpp')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index 719f6b287a..5eac85f764 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -227,6 +227,12 @@ void CVkProto::OnOAuthAuthorize(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq
/////////////////////////////////////////////////////////////////////////////////////////
+void CVkProto::TrackVisitor()
+{
+ debugLogA("CVkProto::TrackVisitor");
+ Push(new AsyncHttpRequest(this, REQUEST_GET, "/method/stats.trackVisitor.json", true, &CVkProto::OnReceiveSmth, AsyncHttpRequest::rpLow));
+}
+
void CVkProto::RetrieveMyInfo()
{
debugLogA("CVkProto::RetrieveMyInfo");
@@ -253,6 +259,7 @@ void CVkProto::OnReceiveMyInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)
OnLoggedIn();
RetrieveUserInfo(m_myUserId);
+ TrackVisitor();
RetrieveUnreadMessages();
RetrieveFriends();
RetrievePollingInfo();