From 7ec9441d255b4361be26705c65eed5819cd0208f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 23 Mar 2018 13:30:42 +0300 Subject: Clist_GroupCreate() to be called inside OnModulesLoaded, not inside the protocol's constructor --- protocols/VKontakte/src/vk_proto.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/VKontakte/src/vk_proto.cpp') 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; -- cgit v1.2.3