diff options
Diffstat (limited to 'protocols/Discord/src/avatars.cpp')
-rw-r--r-- | protocols/Discord/src/avatars.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/Discord/src/avatars.cpp b/protocols/Discord/src/avatars.cpp index fc49a7ec1a..a131b23856 100644 --- a/protocols/Discord/src/avatars.cpp +++ b/protocols/Discord/src/avatars.cpp @@ -19,9 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. CMStringW CDiscordProto::GetAvatarFilename(MCONTACT hContact)
{
- CMStringW wszResult(FORMAT, L"%s\\%S", VARSW(L"%miranda_avatarcache%"), m_szModuleName);
- CreateDirectoryTreeW(wszResult);
-
+ auto wszResult(GetAvatarPath());
wszResult.AppendChar('\\');
const wchar_t* szFileType = ProtoGetAvatarExtension(getByte(hContact, "AvatarType", PA_FORMAT_PNG));
|