diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-05-31 12:16:07 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-05-31 12:16:07 +0000 |
commit | 6ebe834f24f0e8bc89e0be102eaf0fb618b0788d (patch) | |
tree | 426fbb6d415ed48faeea3ccf85c3bca39de93a14 /protocols | |
parent | 6a42ecdd788a6de69f2f40afc9c118016d9d66b2 (diff) |
SkypeWeb: Fix avatar cache for "live" contacts.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13935 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/SkypeWeb/src/skype_avatars.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_avatars.cpp b/protocols/SkypeWeb/src/skype_avatars.cpp index c283258d1e..c72a50072d 100644 --- a/protocols/SkypeWeb/src/skype_avatars.cpp +++ b/protocols/SkypeWeb/src/skype_avatars.cpp @@ -133,8 +133,9 @@ void CSkypeProto::GetAvatarFileName(MCONTACT hContact, TCHAR* pszDest, size_t cb pszDest[tPathLen++] = '\\';
const TCHAR* szFileType = ProtoGetAvatarExtension(getByte(hContact, "AvatarType", PA_FORMAT_JPEG));
- ptrA username(getStringA(hContact, SKYPE_SETTINGS_ID));
- mir_sntprintf(pszDest + tPathLen, MAX_PATH - tPathLen, _T("%s%s"), _A2T(username), szFileType);
+ CMStringA username(getStringA(hContact, SKYPE_SETTINGS_ID));
+ username.Replace("live:", "__live_");
+ mir_sntprintf(pszDest + tPathLen, MAX_PATH - tPathLen, _T("%s%s"), _A2T(username.GetBuffer()), szFileType);
}
void CSkypeProto::SetAvatarUrl(MCONTACT hContact, CMString &tszUrl)
|