From 1218b9d9946a89818c17c065295601b36743cc5d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 17 Mar 2015 21:33:21 +0000 Subject: fix for file logs in SeenPlugin git-svn-id: http://svn.miranda-ng.org/main/trunk@12426 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SeenPlugin/src/seen.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'plugins/SeenPlugin/src/seen.h') diff --git a/plugins/SeenPlugin/src/seen.h b/plugins/SeenPlugin/src/seen.h index 543ea214d0..59090eae93 100644 --- a/plugins/SeenPlugin/src/seen.h +++ b/plugins/SeenPlugin/src/seen.h @@ -84,12 +84,10 @@ WCHAR *any_to_Idle(MCONTACT hContact, const char *module_name, const char *setti #define DEFAULT_POPUPSTAMPTEXT TranslateT("%i(%r)%bWas %o") #define DEFAULT_USERSTAMP TranslateT("Name:%t%N%bStatus:%t%s%bDay:%t%d.%m.%Y%bTime:%t%H:%M:%S%bPrevious Status:%t%o%b%b%P ID:%t%u%bExternal IP:%t%i%bInternal IP:%t%r%bClient ID: %t%C%b%bStatus Message:%t%T") #define DEFAULT_FILESTAMP _T("%d.%m.%Y %H:%M:%S%t%n%t%s%t%u%t%r | %i%t%N") -#define DEFAULT_FILENAME _T("logs\\%P.txt") +#define DEFAULT_FILENAME _T("%miranda_logpath%\\LastSeen\\%P.txt") #define DEFAULT_HISTORYSTAMP _T("%d.%m.%Y - %H:%M [%s]") #define DEFAULT_WATCHEDPROTOCOLS "" -#define VARIABLE_LIST "%s \n%%Y: \t %s \n%%y: \t %s \n%%m: \t %s \n%%E: \t %s \n%%e: \t %s \n%%d: \t %s \n%%W: \t %s \n%%w: \t %s \n\n%s \n%%H: \t %s \n%%h: \t %s \n%%p: \t %s \n%%M: \t %s \n%%S: \t %s \n\n%s \n%%n: \t %s \n%%N: \t %s \n%%u: \t %s \n%%G: \t %s \n%%s: \t %s \n%%T: \t %s \n%%o: \t %s \n%%i: \t %s \n%%r: \t %s \n%%C: \t %s \n%%P: \t %s \n%%A:\t %s\n\n%s \n%%t: \t %s \n%%b: \t %s\n\n%s\t%s \"#\" %s\n\t%s %s", Translate("-- Date --"), Translate("year (4 digits)"), Translate("year (2 digits)"), Translate("month"), Translate("name of month"), Translate("short name of month"), Translate("day"), Translate("weekday (full)"), Translate("weekday (abbreviated)"), Translate("-- Time --"), Translate("hours (24)"), Translate("hours (12)"), Translate("AM/PM"), Translate("minutes"), Translate("seconds"), Translate("-- User --"), Translate("username"), Translate("nick"), Translate("UIN/handle"), Translate("Group"), Translate("Status"), Translate("Status message"), Translate("Old status"), Translate("external IP"), Translate("internal IP"),Translate("Client info"),Translate("Protocol"), Translate("Account"),Translate("-- Format --"), Translate("tabulator"), Translate("line break"), Translate("Note:"),Translate("Use"),Translate("for empty string"),Translate("instead of"),Translate("") - typedef struct{ int count; WPARAM wpcontact[1024]; @@ -102,7 +100,6 @@ void GetColorsFromDWord(LPCOLORREF First, LPCOLORREF Second, DWORD colDword); DWORD GetDWordFromColors(COLORREF First, COLORREF Second); int OptionsInit(WPARAM,LPARAM); int UserinfoInit(WPARAM,LPARAM); -int InitFileOutput(void); void InitMenuitem(void); int UpdateValues(WPARAM, LPARAM); int ModeChange(WPARAM,LPARAM); @@ -111,6 +108,9 @@ int ModeChange_mo(WPARAM,LPARAM); int CheckIfOnline(void); void ShowHistory(MCONTACT hContact, BYTE isAlert); +void InitFileOutput(void); +void UninitFileOutput(void); + struct logthread_info { MCONTACT hContact; @@ -126,6 +126,9 @@ extern HANDLE g_pUserInfo; extern HGENMENU hmenuitem; extern DWORD dwmirver; +extern BOOL g_bFileActive; +extern TCHAR *g_ptszFileStamp, *g_ptszFileName; + void LoadWatchedProtos(); void UnloadWatchedProtos(); extern LIST arWatchedProtos; -- cgit v1.2.3