From cf66cecdb6cf9f06720c4604fadf74ca0a0dbcd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Wed, 23 May 2012 13:47:55 +0000 Subject: MenuItemEx: - added option for refreshing contact details - some cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@148 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MenuItemEx/main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'plugins/MenuItemEx/main.c') diff --git a/plugins/MenuItemEx/main.c b/plugins/MenuItemEx/main.c index 2f7c998807..b2eac8f810 100644 --- a/plugins/MenuItemEx/main.c +++ b/plugins/MenuItemEx/main.c @@ -767,7 +767,7 @@ INT_PTR onCopyID(WPARAM wparam,LPARAM lparam) GetID(hContact,szProto,(LPSTR)&szID); - if(DBGetContactSettingWord(NULL,VISPLG,"flags",vf_default)&VF_CIDN) { + if(DBGetContactSettingDword(NULL,VISPLG,"flags",vf_default)&VF_CIDN) { if (bMir_08) pa = (PROTOACCOUNT*)CallService(MS_PROTO_GETACCOUNT, 0, (LPARAM)szProto); @@ -793,7 +793,7 @@ INT_PTR onCopyStatusMsg(WPARAM wparam,LPARAM lparam) char par[32]; TCHAR buffer[2048]; int i; - WORD flags=DBGetContactSettingWord(NULL,VISPLG,"flags",vf_default); + DWORD flags=DBGetContactSettingDword(NULL,VISPLG,"flags",vf_default); module = (LPSTR) CallService(MS_PROTO_GETCONTACTBASEPROTO, wparam, 0); if(!module) return 0; @@ -961,7 +961,7 @@ static void ModifySubmenuItem(HANDLE hItem, TCHAR* name, int checked, int hidden int BuildMenu(WPARAM wparam,LPARAM lparam) { CLISTMENUITEM miAV={0},miNV,miHFL,miIGN,miPROTO,miADD,miREQ,miCID,miRECV,miSTAT,miCIP,miCMV; - WORD flags=DBGetContactSettingWord(NULL,VISPLG,"flags",vf_default); + DWORD flags=DBGetContactSettingDword(NULL,VISPLG,"flags",vf_default); int i = 0, j = 0, check = 0, all = 0, hide = 0; BOOL bIsOnline = FALSE, bShowAll = CTRL_IS_PRESSED; PROTOACCOUNT* pa; @@ -1198,7 +1198,8 @@ static int ContactSettingChanged( WPARAM wParam, LPARAM lParam ) DBDeleteContactSetting( ( HANDLE )wParam, lpzProto, "LogoffTS"); // TESTING: updating user's details - CallContactService( ( HANDLE )wParam, PSS_GETINFO, 0, 0 ); + if (DBGetContactSettingDword(NULL, VISPLG, "flags", vf_default) & VF_REFRESH) + CallContactService( ( HANDLE )wParam, PSS_GETINFO, 0, 0 ); } if (newStatus == ID_STATUS_OFFLINE) { -- cgit v1.2.3