summaryrefslogtreecommitdiff
path: root/plugins/SeenPlugin/src/main.cpp
diff options
context:
space:
mode:
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);