diff options
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 11 |
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 |