From 8fbb710f69be547c9a1fb45346bbd01db9d23bee Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 19 Sep 2016 11:25:57 +0000 Subject: Chat_AddGroup - even less structures git-svn-id: http://svn.miranda-ng.org/main/trunk@17316 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MSN/src/msn_chat.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'protocols/MSN/src/msn_chat.cpp') diff --git a/protocols/MSN/src/msn_chat.cpp b/protocols/MSN/src/msn_chat.cpp index 86a0967aaf..a2a62abeea 100644 --- a/protocols/MSN/src/msn_chat.cpp +++ b/protocols/MSN/src/msn_chat.cpp @@ -65,18 +65,12 @@ int CMsnProto::MSN_ChatInit(GCThreadData *info, const char *pszID, const char *p gcw.ptszID = info->mChatID; Chat_NewSession(&gcw); - GCDEST gcd = { m_szModuleName, info->mChatID, GC_EVENT_ADDGROUP }; - GCEVENT gce = { &gcd }; - for (int j = 0; j < _countof(m_ptszRoles); j++) { - gce.ptszStatus = m_ptszRoles[j]; - Chat_Event(&gce); - } + for (int j = 0; j < _countof(m_ptszRoles); j++) + Chat_AddGroup(m_szModuleName, info->mChatID, m_ptszRoles[j]); Chat_Control(m_szModuleName, info->mChatID, SESSION_INITDONE); Chat_Control(m_szModuleName, info->mChatID, SESSION_ONLINE); Chat_Control(m_szModuleName, info->mChatID, WINDOW_VISIBLE); - - mir_free((wchar_t*)gce.ptszUID); return 0; } -- cgit v1.2.3