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/Twitter/src | |
parent | be1918c1b2986ddb387cd593deddf120f9e61874 (diff) |
Chat_AddGroup - simplified prototype
Diffstat (limited to 'protocols/Twitter/src')
-rw-r--r-- | protocols/Twitter/src/chat.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/Twitter/src/chat.cpp b/protocols/Twitter/src/chat.cpp index 6ff50e7b28..230aafc8ed 100644 --- a/protocols/Twitter/src/chat.cpp +++ b/protocols/Twitter/src/chat.cpp @@ -113,13 +113,12 @@ void TwitterProto::DeleteChatContact(const char *name) INT_PTR TwitterProto::OnJoinChat(WPARAM, LPARAM suppress)
{
// ***** Create the group chat session
- Chat_NewSession(GCW_CHATROOM, m_szModuleName, m_tszUserName, m_tszUserName);
-
- if (m_iStatus != ID_STATUS_ONLINE)
+ SESSION_INFO *si = Chat_NewSession(GCW_CHATROOM, m_szModuleName, m_tszUserName, m_tszUserName);
+ if (!si || m_iStatus != ID_STATUS_ONLINE)
return 0;
// ***** Create a group
- Chat_AddGroup(m_szModuleName, m_tszUserName, TranslateT("Normal"));
+ Chat_AddGroup(si, TranslateT("Normal"));
// ***** Hook events
HookProtoEvent(ME_GC_EVENT, &TwitterProto::OnChatOutgoing);
|