diff options
author | George Hazan <george.hazan@gmail.com> | 2016-09-19 14:17:59 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-09-19 14:17:59 +0000 |
commit | 9f974ab8617b6b7c19bac9e71d06de89d7e7bd03 (patch) | |
tree | adfbe951d1c291fe0904a083d332889aa043f3ac /protocols/MSN/src/msn_chat.cpp | |
parent | 0f37fbfbfe24563a6be07f9abd245374e66cb173 (diff) |
- struct GCSESSION died;
- Chat_NewSession simply gets 5 parameters;
- minor chat code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@17318 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_chat.cpp')
-rw-r--r-- | protocols/MSN/src/msn_chat.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/protocols/MSN/src/msn_chat.cpp b/protocols/MSN/src/msn_chat.cpp index a2a62abeea..6c1a63978f 100644 --- a/protocols/MSN/src/msn_chat.cpp +++ b/protocols/MSN/src/msn_chat.cpp @@ -54,16 +54,11 @@ int CMsnProto::MSN_ChatInit(GCThreadData *info, const char *pszID, const char *p wchar_t szName[512];
InterlockedIncrement(&m_chatID);
- if (*pszTopic) wcsncpy(szName, _A2T(pszTopic), _countof(szName));
+ if (*pszTopic)
+ wcsncpy(szName, _A2T(pszTopic), _countof(szName));
else mir_snwprintf(szName, L"%s %s%d",
m_tszUserName, TranslateT("Chat #"), m_chatID);
-
- GCSESSION gcw = {};
- gcw.iType = GCW_CHATROOM;
- gcw.pszModule = m_szModuleName;
- gcw.ptszName = szName;
- gcw.ptszID = info->mChatID;
- Chat_NewSession(&gcw);
+ Chat_NewSession(GCW_CHATROOM, m_szModuleName, info->mChatID, szName);
for (int j = 0; j < _countof(m_ptszRoles); j++)
Chat_AddGroup(m_szModuleName, info->mChatID, m_ptszRoles[j]);
|