summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2012-05-23 15:04:37 +0000
committerRobert Pösel <robyer@seznam.cz>2012-05-23 15:04:37 +0000
commiteb42c3696288a62d901fe097b47184b5fab570d0 (patch)
tree43bdf51ae3fa1e284df27794185509a64474bf41
parent8aa329bf32396338816a8136b673ca83c4030dc5 (diff)
MenuItemEx: don't refresh Hidden or NotOnList contact's details
git-svn-id: http://svn.miranda-ng.org/main/trunk@153 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/MenuItemEx/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/MenuItemEx/main.c b/plugins/MenuItemEx/main.c
index b2eac8f810..00c3019ca6 100644
--- a/plugins/MenuItemEx/main.c
+++ b/plugins/MenuItemEx/main.c
@@ -1199,7 +1199,11 @@ static int ContactSettingChanged( WPARAM wParam, LPARAM lParam )
// TESTING: updating user's details
if (DBGetContactSettingDword(NULL, VISPLG, "flags", vf_default) & VF_REFRESH)
- CallContactService( ( HANDLE )wParam, PSS_GETINFO, 0, 0 );
+ {
+ // don't refresh Hidden or NotOnList contact's details
+ if (!DBGetContactSettingByte((HANDLE)wParam, "CList", "Hidden", 0) && !DBGetContactSettingByte((HANDLE)wParam, "CList", "NotOnList", 0))
+ CallContactService( ( HANDLE )wParam, PSS_GETINFO, 0, 0 );
+ }
}
if (newStatus == ID_STATUS_OFFLINE)
{