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/MRA/src/MraChat.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'protocols/MRA/src') diff --git a/protocols/MRA/src/MraChat.cpp b/protocols/MRA/src/MraChat.cpp index e09a76c374..046093d84c 100644 --- a/protocols/MRA/src/MraChat.cpp +++ b/protocols/MRA/src/MraChat.cpp @@ -39,12 +39,8 @@ INT_PTR CMraProto::MraChatSessionNew(MCONTACT hContact) gcw.ptszStatusbarText = L"status bar"; gcw.pItemData = (void*)hContact; if (!Chat_NewSession(&gcw)) { - GCDEST gcd = { m_szModuleName, wszEMail.c_str(), GC_EVENT_ADDGROUP }; - GCEVENT gce = { &gcd }; - for (int i = 0; i < _countof(lpwszStatuses); i++) { - gce.ptszStatus = TranslateW(lpwszStatuses[i]); - Chat_Event(&gce); - } + for (int i = 0; i < _countof(lpwszStatuses); i++) + Chat_AddGroup(m_szModuleName, wszEMail, TranslateW(lpwszStatuses[i])); Chat_Control(m_szModuleName, wszEMail, SESSION_INITDONE); Chat_Control(m_szModuleName, wszEMail, SESSION_ONLINE); -- cgit v1.2.3