From 259bd5726faf89964ff6ee7ec0858d39ff6ac170 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 23 Jan 2014 22:26:29 +0000 Subject: fix for chat logs & Folders git-svn-id: http://svn.miranda-ng.org/main/trunk@7845 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/chat/main.cpp | 8 ++++++++ plugins/TabSRMM/src/mim.cpp | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'plugins/TabSRMM/src') diff --git a/plugins/TabSRMM/src/chat/main.cpp b/plugins/TabSRMM/src/chat/main.cpp index 914084cf02..e13811a375 100644 --- a/plugins/TabSRMM/src/chat/main.cpp +++ b/plugins/TabSRMM/src/chat/main.cpp @@ -47,6 +47,14 @@ static void OnAddLog(SESSION_INFO *si, int isOk) SendMessage(si->hWnd, GC_REDRAWLOG2, 0, 0); } +static void OnGetLogName(SESSION_INFO *si, LPCTSTR ptszParsedName) +{ + if (!M.pathIsAbsolute(ptszParsedName)) + mir_sntprintf(si->pszLogFileName, MAX_PATH, _T("%s%s"), M.getChatLogPath(), ptszParsedName); + else + mir_sntprintf(si->pszLogFileName, MAX_PATH, _T("%s"), ptszParsedName); +} + static void OnCreateSession(SESSION_INFO *si, MODULEINFO *mi) { Chat_SetFilters(si); diff --git a/plugins/TabSRMM/src/mim.cpp b/plugins/TabSRMM/src/mim.cpp index 423d1d721a..d385388432 100644 --- a/plugins/TabSRMM/src/mim.cpp +++ b/plugins/TabSRMM/src/mim.cpp @@ -215,8 +215,8 @@ INT_PTR CMimAPI::foldersPathChanged() FoldersGetCustomPathT(m_hChatLogsPath, szTemp, MAX_PATH, const_cast(getChatLogPath())); mir_sntprintf(m_szChatLogsPath, MAX_PATH, _T("%s"), szTemp); Utils::ensureTralingBackslash(m_szChatLogsPath); - replaceStrT(g_Settings.pszLogDir, m_szChatLogsPath); } + CreateDirectoryTreeT(m_szProfilePath); CreateDirectoryTreeT(m_szSkinsPath); CreateDirectoryTreeT(m_szSavedAvatarsPath); -- cgit v1.2.3