From 862116c0d40a7304c458f68c4c725e8a95960588 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 24 Feb 2014 13:18:53 +0000 Subject: valid first parameter's name of ME_DB_CONTACT_SETTINGCHANGED handlers git-svn-id: http://svn.miranda-ng.org/main/trunk@8255 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FloatingContacts/src/main.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'plugins/FloatingContacts/src') diff --git a/plugins/FloatingContacts/src/main.cpp b/plugins/FloatingContacts/src/main.cpp index 416aa4857f..ff267bbc3c 100644 --- a/plugins/FloatingContacts/src/main.cpp +++ b/plugins/FloatingContacts/src/main.cpp @@ -226,7 +226,7 @@ static int OnContactSettingChanged(WPARAM hContact, LPARAM lParam) ThumbInfo *pThumb = thumbList.FindThumbByContact(hContact); int idStatus = ID_STATUS_OFFLINE; BOOL bRefresh = TRUE; - DBCONTACTWRITESETTING* pdbcws = (DBCONTACTWRITESETTING*)lParam; + DBCONTACTWRITESETTING *pdbcws = (DBCONTACTWRITESETTING*)lParam; if (hContact == NULL) { if (( 0 == _stricmp( pdbcws->szModule, "CLC" )) || ( 0 == _stricmp( pdbcws->szModule, MODULE )) ) { @@ -242,25 +242,15 @@ static int OnContactSettingChanged(WPARAM hContact, LPARAM lParam) // Only on these 2 events we need to refresh if (0 == _stricmp(pdbcws->szSetting, "Status")) - { idStatus = pdbcws->value.wVal; - } else if (0 == _stricmp(pdbcws->szSetting, "Nick")) - { idStatus = GetContactStatus(hContact); - } else if (0 == _stricmp(pdbcws->szSetting, "MyHandle")) - { idStatus = GetContactStatus(hContact); - } else if (fcOpt.bShowIdle && 0 == _stricmp( pdbcws->szSetting, "IdleTS")) - { idStatus = GetContactStatus(hContact); - } else - { bRefresh = FALSE; - } // Detach call if (bRefresh) -- cgit v1.2.3