summaryrefslogtreecommitdiff
path: root/plugins/AvatarHistory
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AvatarHistory')
-rw-r--r--plugins/AvatarHistory/src/utils.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/AvatarHistory/src/utils.cpp b/plugins/AvatarHistory/src/utils.cpp
index 7a1148e9c4..5d91ab94ab 100644
--- a/plugins/AvatarHistory/src/utils.cpp
+++ b/plugins/AvatarHistory/src/utils.cpp
@@ -140,15 +140,14 @@ TCHAR* GetProtocolFolder(TCHAR *fn, char *proto)
TCHAR* GetContactFolder(TCHAR *fn, HANDLE hContact)
{
- TCHAR uin[MAX_PATH];
-
char *proto = GetContactProto(hContact);
GetProtocolFolder(fn, proto);
+ TCHAR uin[MAX_PATH];
GetUIDFromHContact(hContact, uin, SIZEOF(uin));
+ ConvertToFilename(uin, sizeof(uin)); //added so that weather id's like "yw/CI0000" work
mir_sntprintf(fn, MAX_PATH, _T("%s\\%s"), fn, uin);
CreateDirectoryTreeT(fn);
- ConvertToFilename(uin, sizeof(uin)); //added so that weather id's like "yw/CI0000" work
#ifdef DBGPOPUPS
TCHAR log[1024];