diff options
Diffstat (limited to 'src/modules/chat')
-rw-r--r-- | src/modules/chat/tools.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/chat/tools.cpp b/src/modules/chat/tools.cpp index 5574f49e86..23980a5e91 100644 --- a/src/modules/chat/tools.cpp +++ b/src/modules/chat/tools.cpp @@ -801,7 +801,10 @@ TCHAR* GetChatLogsFilename(SESSION_INFO *si, time_t tTime) dat.hContact = si->hContact;
dat.variables = rva;
TCHAR *tszParsedName = (TCHAR*)CallService(MS_UTILS_REPLACEVARS, (WPARAM)ptszVarPath, (LPARAM)&dat);
- PathToAbsoluteT(tszParsedName, si->pszLogFileName);
+ if (ci.OnGetLogName)
+ ci.OnGetLogName(si, tszParsedName);
+ else
+ PathToAbsoluteT(tszParsedName, si->pszLogFileName);
mir_free(tszParsedName);
for (int i = 0; i < SIZEOF(rva); i++)
|