summaryrefslogtreecommitdiff
path: root/plugins/SeenPlugin/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-03-17 21:33:21 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-03-17 21:33:21 +0000
commit1218b9d9946a89818c17c065295601b36743cc5d (patch)
tree6243ed2be5fdac3f35f9bbcaef0df982f94d2db9 /plugins/SeenPlugin/src/main.cpp
parentc37d75940462df40da126c7696bacc604923a043 (diff)
fix for file logs in SeenPlugin
git-svn-id: http://svn.miranda-ng.org/main/trunk@12426 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SeenPlugin/src/main.cpp')
-rw-r--r--plugins/SeenPlugin/src/main.cpp7
1 files changed, 4 insertions, 3 deletions
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);