summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-07 16:29:17 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-07 16:29:17 +0000
commit59de222d916876cc158d03909b661dd8b2cf6a3f (patch)
tree0eeffe666cfd2a5e151edacf26237cddab74d264 /protocols/VKontakte/src/vk_proto.cpp
parentae6d0b3c9f732c3770fc4bf00ba2e52012671108 (diff)
- frient list & statuses;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@6396 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.cpp')
-rw-r--r--protocols/VKontakte/src/vk_proto.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp
index d2e213e998..a93c84d647 100644
--- a/protocols/VKontakte/src/vk_proto.cpp
+++ b/protocols/VKontakte/src/vk_proto.cpp
@@ -38,6 +38,13 @@ CVkProto::CVkProto(const char *szModuleName, const TCHAR *ptszUserName) :
mir_sntprintf(descr, SIZEOF(descr), _T("%%miranda_avatarcache%%\\%s"), m_tszUserName);
hAvatarFolder = FoldersRegisterCustomPathT(LPGEN("Avatars"), m_szModuleName, descr, m_tszUserName);
+ m_defaultGroup = getTStringA("ProtoGroup");
+ if (m_defaultGroup == NULL)
+ m_defaultGroup = mir_tstrdup( TranslateT("VKontakte"));
+ Clist_CreateGroup(NULL, m_defaultGroup);
+
+ db_set_resident(m_szModuleName, "Status");
+
// Set all contacts offline -- in case we crashed
SetAllContactStatuses(ID_STATUS_OFFLINE);
}