From da1b2a070c113222cbbad31b18ab704c7d1301b2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 26 Nov 2018 15:23:19 +0300 Subject: Chat_AddGroup - simplified prototype --- protocols/Twitter/src/chat.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'protocols/Twitter/src/chat.cpp') 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); -- cgit v1.2.3