diff options
author | George Hazan <george.hazan@gmail.com> | 2016-09-19 11:25:57 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-09-19 11:25:57 +0000 |
commit | 8fbb710f69be547c9a1fb45346bbd01db9d23bee (patch) | |
tree | b49bf9e58c0aa7fdfd49bce0170062454bee4d9e /protocols/MRA | |
parent | f76565d65450fe2f60913b93938c9a770e8caf4b (diff) |
Chat_AddGroup - even less structures
git-svn-id: http://svn.miranda-ng.org/main/trunk@17316 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA')
-rw-r--r-- | protocols/MRA/src/MraChat.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
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);
|