diff options
author | Robert Pösel <robyer@seznam.cz> | 2012-05-23 13:47:55 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2012-05-23 13:47:55 +0000 |
commit | cf66cecdb6cf9f06720c4604fadf74ca0a0dbcd8 (patch) | |
tree | 7dbdd3e9aea6e3f53473b1f67d7fba006804a2fe /plugins/MenuItemEx/main.c | |
parent | 1f6f1a0172884050cba8ac79c244899951eafed2 (diff) |
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
Diffstat (limited to 'plugins/MenuItemEx/main.c')
-rw-r--r-- | plugins/MenuItemEx/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
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)
{
|