summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-23 13:30:42 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-23 13:30:42 +0300
commit7ec9441d255b4361be26705c65eed5819cd0208f (patch)
treea9dcfa765475648a6c5d7dfaf92b901f916b7c21 /protocols/VKontakte/src
parent93249b0dec5639fa1c438da3e3289b65bf04c1de (diff)
Clist_GroupCreate() to be called inside OnModulesLoaded, not inside the protocol's constructor
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r--protocols/VKontakte/src/vk_proto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp
index 75084fe329..4d3505c327 100644
--- a/protocols/VKontakte/src/vk_proto.cpp
+++ b/protocols/VKontakte/src/vk_proto.cpp
@@ -70,8 +70,6 @@ CVkProto::CVkProto(const char *szModuleName, const wchar_t *pwszUserName) :
nlu.szDescriptiveName.w = descr;
m_hNetlibUser = Netlib_RegisterUser(&nlu);
- Clist_GroupCreate(0, m_vkOptions.pwszDefaultGroup);
-
CMStringA szListeningTo(FORMAT, "%sEnabled", m_szModuleName);
db_set_b(0, "ListeningTo", szListeningTo, m_vkOptions.iMusicSendMetod == 0 ? 0 : 1);
@@ -105,6 +103,8 @@ CVkProto::~CVkProto()
int CVkProto::OnModulesLoaded(WPARAM, LPARAM)
{
+ Clist_GroupCreate(0, m_vkOptions.pwszDefaultGroup);
+
// Chats
GCREGISTER gcr = {};
gcr.ptszDispName = m_tszUserName;