diff options
author | Piotr Piastucki <leech.miranda@gmail.com> | 2015-12-28 13:51:32 +0000 |
---|---|---|
committer | Piotr Piastucki <leech.miranda@gmail.com> | 2015-12-28 13:51:32 +0000 |
commit | c6804efd7ba31e209cf8a6bb76dea84f7f1d8eee (patch) | |
tree | 972ad5ec47b9f2e2c692c17fe5466b4d846c7270 /protocols/MSN/src/msn_lists.cpp | |
parent | e6756f2edef4fbb7ef1f548c1d7b9c8663eaa695 (diff) |
MSN should now parse Skype client version of other contacts correctly.
git-svn-id: http://svn.miranda-ng.org/main/trunk@15951 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_lists.cpp')
-rw-r--r-- | protocols/MSN/src/msn_lists.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/protocols/MSN/src/msn_lists.cpp b/protocols/MSN/src/msn_lists.cpp index 8e747106ca..6f752dcc90 100644 --- a/protocols/MSN/src/msn_lists.cpp +++ b/protocols/MSN/src/msn_lists.cpp @@ -66,11 +66,16 @@ MsnContact* CMsnProto::Lists_Get(MCONTACT hContact) MsnPlace* CMsnProto::Lists_GetPlace(const char* wlid)
{
- mir_cslock lck(m_csLists);
-
char *szEmail, *szInst;
parseWLID(NEWSTR_ALLOCA(wlid), NULL, &szEmail, &szInst);
+ return Lists_GetPlace(szEmail, szInst);
+}
+
+MsnPlace* CMsnProto::Lists_GetPlace(const char* szEmail, const char *szInst)
+{
+ mir_cslock lck(m_csLists);
+
if (szInst == NULL)
szInst = (char*)sttVoidUid;
@@ -95,6 +100,8 @@ MsnPlace* CMsnProto::Lists_AddPlace(const char* email, const char* id, unsigned pl->id = mir_strdup(id);
pl->cap1 = cap1;
pl->cap2 = cap2;
+ pl->client = 11;
+ *pl->szClientVer = 0;
pl->p2pMsgId = 0;
pl->p2pPktNum = 0;
p->places.insert(pl);
|