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