diff options
Diffstat (limited to 'plugins/RecentContacts/src')
-rw-r--r-- | plugins/RecentContacts/src/RecentContacts.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/RecentContacts/src/RecentContacts.cpp b/plugins/RecentContacts/src/RecentContacts.cpp index ae096f95e3..46493dd74a 100644 --- a/plugins/RecentContacts/src/RecentContacts.cpp +++ b/plugins/RecentContacts/src/RecentContacts.cpp @@ -512,10 +512,9 @@ int OnModulesLoaded(WPARAM wParam, LPARAM lParam) return 0;
}
-INT_PTR ToggleIgnore (WPARAM wParam, LPARAM lParam)
+INT_PTR ToggleIgnore (WPARAM hContact, LPARAM lParam)
{
- if (wParam != NULL) {
- MCONTACT hContact = wParam;
+ if (hContact != NULL) {
int state = db_get_b(hContact, dbLastUC_ModuleName, dbLastUC_IgnoreContact, 0) == 0 ? 1 : 0 ;
db_set_b(hContact, dbLastUC_ModuleName, dbLastUC_IgnoreContact, state);
return state;
|