summaryrefslogtreecommitdiff
path: root/plugins/SeenPlugin/src/utils.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/utils.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/utils.cpp')
-rw-r--r--plugins/SeenPlugin/src/utils.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/SeenPlugin/src/utils.cpp b/plugins/SeenPlugin/src/utils.cpp
index ea830618b1..230f23486b 100644
--- a/plugins/SeenPlugin/src/utils.cpp
+++ b/plugins/SeenPlugin/src/utils.cpp
@@ -598,7 +598,7 @@ int UpdateValues(WPARAM hContact, LPARAM lparam)
}
if (!db_get_b(NULL, S_MOD, "IgnoreOffline", 1)) {
- if (db_get_b(NULL, S_MOD, "FileOutput", 0))
+ if (g_bFileActive)
FileWrite(hContact);
char *sProto = GetContactProto(hContact);
@@ -622,9 +622,7 @@ int UpdateValues(WPARAM hContact, LPARAM lparam)
DBWriteTimeTS(time(NULL), hContact);
- //db_set_w(hContact,S_MOD,"StatusTriger",(WORD)cws->value.wVal);
-
- if (db_get_b(NULL, S_MOD, "FileOutput", 0)) FileWrite(hContact);
+ if (g_bFileActive) FileWrite(hContact);
if (prevStatus != cws->value.wVal) myPlaySound(hContact, cws->value.wVal, prevStatus);
if (db_get_b(NULL, S_MOD, "UsePopups", 0))
if (prevStatus != cws->value.wVal)
@@ -722,7 +720,7 @@ int ModeChange(WPARAM wparam, LPARAM lparam)
db_set_w(NULL, S_MOD, courProtoName, isetting);
- if (db_get_b(NULL, S_MOD, "FileOutput", 0))
+ if (g_bFileActive)
FileWrite(NULL);
courProtoName = NULL;