diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-26 15:23:19 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-26 15:23:19 +0300 |
commit | da1b2a070c113222cbbad31b18ab704c7d1301b2 (patch) | |
tree | 841092328c9c7fb35c3454627296862a956f5d5c /protocols/MRA | |
parent | be1918c1b2986ddb387cd593deddf120f9e61874 (diff) |
Chat_AddGroup - simplified prototype
Diffstat (limited to 'protocols/MRA')
-rw-r--r-- | protocols/MRA/src/MraChat.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/MRA/src/MraChat.cpp b/protocols/MRA/src/MraChat.cpp index 49d172e9bb..938441ee00 100644 --- a/protocols/MRA/src/MraChat.cpp +++ b/protocols/MRA/src/MraChat.cpp @@ -28,11 +28,12 @@ INT_PTR CMraProto::MraChatSessionNew(MCONTACT hContact) CMStringW wszEMail;
mraGetStringW(hContact, "e-mail", wszEMail);
- if (Chat_NewSession(GCW_CHATROOM, m_szModuleName, wszEMail, Clist_GetContactDisplayName(hContact), (void*)hContact))
+ SESSION_INFO *si = Chat_NewSession(GCW_CHATROOM, m_szModuleName, wszEMail, Clist_GetContactDisplayName(hContact), (void*)hContact);
+ if (si == nullptr)
return 1;
for (auto &it : lpwszStatuses)
- Chat_AddGroup(m_szModuleName, wszEMail, TranslateW(it));
+ Chat_AddGroup(si, TranslateW(it));
Chat_Control(m_szModuleName, wszEMail, SESSION_INITDONE);
Chat_Control(m_szModuleName, wszEMail, SESSION_ONLINE);
|