summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src/proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/ICQ-WIM/src/proto.cpp')
-rw-r--r--protocols/ICQ-WIM/src/proto.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/ICQ-WIM/src/proto.cpp b/protocols/ICQ-WIM/src/proto.cpp
index 3078cf836f..e71e2dc053 100644
--- a/protocols/ICQ-WIM/src/proto.cpp
+++ b/protocols/ICQ-WIM/src/proto.cpp
@@ -88,6 +88,9 @@ CIcqProto::CIcqProto(const char *aProtoName, const wchar_t *aUserName) :
gcr.pszModule = m_szModuleName;
Chat_Register(&gcr);
+ // avatars
+ CreateDirectoryTreeW(GetAvatarPath());
+
// netlib handle
NETLIBUSER nlu = {};
nlu.szSettingsModule = m_szModuleName;
@@ -132,7 +135,7 @@ void CIcqProto::OnModulesLoaded()
HookProtoEvent(ME_USERINFO_INITIALISE, &CIcqProto::OnUserInfoInit);
// load custom smilies
- CMStringW wszPath(FORMAT, L"%s\\%S\\Stickers\\*.png", VARSW(L"%miranda_avatarcache%").get(), m_szModuleName);
+ CMStringW wszPath(GetAvatarPath());
SMADD_CONT cont = { 2, m_szModuleName, wszPath };
CallService(MS_SMILEYADD_LOADCONTACTSMILEYS, 0, LPARAM(&cont));
}