summaryrefslogtreecommitdiff
path: root/plugins/MirFox/src/MirfoxMiranda.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirFox/src/MirfoxMiranda.cpp')
-rw-r--r--plugins/MirFox/src/MirfoxMiranda.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/MirFox/src/MirfoxMiranda.cpp b/plugins/MirFox/src/MirfoxMiranda.cpp
index e855537f5b..015fecfc7f 100644
--- a/plugins/MirFox/src/MirfoxMiranda.cpp
+++ b/plugins/MirFox/src/MirfoxMiranda.cpp
@@ -127,7 +127,7 @@ void CMirfoxMiranda::onContactAdded_async(void* threadArg)
canAdd = false;
// execute
- if (canAdd && db_get_b(onContactAsyncThreadArgStruct->hContact, "CList", "Hidden", 0) == 1)
+ if (canAdd && Clist_IsHidden(onContactAsyncThreadArgStruct->hContact))
canAdd = false;
// add
@@ -188,10 +188,9 @@ void CMirfoxMiranda::onContactSettingChanged_async(void* threadArg){
canAdd = false;
// edit
- if (canAdd &&db_get_b(onContactAsyncThreadArgStruct->hContact, "CList", "Hidden", 0) == 1)
+ if (canAdd && Clist_IsHidden(onContactAsyncThreadArgStruct->hContact))
canAdd = false;
-
if (canAdd)
mirfoxMiranda->getMirfoxData().refreshContact_Edit(mirfoxMiranda->getSharedMemoryUtils(), onContactAsyncThreadArgStruct->hContact);