diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-23 22:26:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-23 22:26:29 +0000 |
commit | 259bd5726faf89964ff6ee7ec0858d39ff6ac170 (patch) | |
tree | 1d9bd0cfe28473f338a1028174dd2ee4ee3bcb3f /plugins/TabSRMM/src/chat/main.cpp | |
parent | 9937bcdb0f78a8c8c3893a8afb0f5808cd6d1e3d (diff) |
fix for chat logs & Folders
git-svn-id: http://svn.miranda-ng.org/main/trunk@7845 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/chat/main.cpp')
-rw-r--r-- | plugins/TabSRMM/src/chat/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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);
|