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 0802d73405..b45ce5da7f 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -27,6 +27,17 @@ TCHAR* CVkProto::GetUserStoredPassword()
return NULL;
}
+void CVkProto::SetAllContactStatuses(int iStatus)
+{
+ for (HANDLE hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName)) {
+ if (isChatRoom(hContact))
+ continue;
+
+ if (getWord(hContact, "Status", 0) != iStatus)
+ setWord(hContact, "Status", iStatus);
+ }
+}
+
int CVkProto::SetServerStatus(int iStatus)
{
return 0;