diff options
author | Robert Pösel <robyer@seznam.cz> | 2012-05-23 15:04:37 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2012-05-23 15:04:37 +0000 |
commit | eb42c3696288a62d901fe097b47184b5fab570d0 (patch) | |
tree | 43bdf51ae3fa1e284df27794185509a64474bf41 /plugins/MenuItemEx | |
parent | 8aa329bf32396338816a8136b673ca83c4030dc5 (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
Diffstat (limited to 'plugins/MenuItemEx')
-rw-r--r-- | plugins/MenuItemEx/main.c | 6 |
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)
{
|