diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-03-09 10:29:47 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-03-09 10:29:47 +0000 |
commit | c1b1eff82c3101a6bf00550ff27d4ae6823bbdbd (patch) | |
tree | df2ce6dc43ca3db3451b344978488369ba58af71 /protocols/VKontakte/src/misc.cpp | |
parent | a7a5b0dbc9f06ef5a083116f4977a88ebcd9cefd (diff) |
VKontakte:
add LastSeen support
add additional user profile fields (country, city, relation, interests, activities, music, movies, tv, books, games, quotes)
add hidden option for lang (‘VKLang’, UNICODE)
version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@16449 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 370e4ba624..e94368353d 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -1187,9 +1187,12 @@ void CVkProto::SetInvisible(MCONTACT hContact) if (getWord(hContact, "Status", ID_STATUS_OFFLINE) == ID_STATUS_OFFLINE) {
setWord(hContact, "Status", ID_STATUS_INVISIBLE);
SetMirVer(hContact, 1);
+ db_set_w(hContact, "BuddyExpectator", "LastStatus", ID_STATUS_INVISIBLE);
debugLogA("CVkProto::SetInvisible %d set ID_STATUS_INVISIBLE", getDword(hContact, "ID", -1));
}
- setDword(hContact, "InvisibleTS", time(NULL));
+ time_t now = time(NULL);
+ db_set_dw(hContact, "BuddyExpectator", "LastSeen", (DWORD)now);
+ setDword(hContact, "InvisibleTS", (DWORD)now);
}
CMString CVkProto::RemoveBBC(CMString& tszSrc)
|