summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/misc.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2015-02-16 06:43:40 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2015-02-16 06:43:40 +0000
commita93165ff101c6cdfab9ef9b8b85a0436ebc0d7de (patch)
tree74fce1bb9f90a811f44c2756d932c447989a3b7e /protocols/VKontakte/src/misc.cpp
parent133b4b92d9acb1f4c63205cfe33665f3d1717d44 (diff)
VKontakte:
‘force online’ change to ‘force invisible’ add ‘Invisible interval timeout’ options fix for re-set status message when change status invisible <=> offline version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@12139 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 f29488d1a2..71c109a042 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -1136,4 +1136,15 @@ CMString CVkProto::GetFwdMessages(JSONNODE *pMessages, BBCSupport iBBC)
}
return res;
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
+void CVkProto::SetInvisible(MCONTACT hContact)
+{
+ if (getWord(hContact, "Status", ID_STATUS_OFFLINE) == ID_STATUS_OFFLINE) {
+ setWord(hContact, "Status", ID_STATUS_INVISIBLE);
+ SetMirVer(hContact, 1);
+ }
+ setDword(hContact, "InvisibleTS", time(NULL));
} \ No newline at end of file