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/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/SeenPlugin/src/main.cpp') diff --git a/plugins/SeenPlugin/src/main.cpp b/plugins/SeenPlugin/src/main.cpp index ad6f81bfad..b5a50a98c1 100644 --- a/plugins/SeenPlugin/src/main.cpp +++ b/plugins/SeenPlugin/src/main.cpp @@ -59,6 +59,9 @@ void UninitHistoryDialog(void); int MainInit(WPARAM, LPARAM) { + if (g_bFileActive = db_get_b(NULL, S_MOD, "FileOutput", 0)) + InitFileOutput(); + if (db_get_b(NULL, S_MOD, "MenuItem", 1)) InitMenuitem(); @@ -93,9 +96,6 @@ extern "C" __declspec(dllexport) int Load(void) includeIdle = (BOOL)db_get_b(NULL, S_MOD, "IdleSupport", 1); - if (db_get_b(NULL, S_MOD, "FileOutput", 0)) - InitFileOutput(); - if (db_get_b(NULL, S_MOD, "MissedOnes", 0)) ehmissed_proto = HookEvent(ME_PROTO_ACK, ModeChange_mo); @@ -115,6 +115,7 @@ extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD) extern "C" __declspec(dllexport) int Unload(void) { + UninitFileOutput(); UnloadWatchedProtos(); WindowList_Destroy(g_pUserInfo); -- cgit v1.2.3