diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-24 13:18:53 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-24 13:18:53 +0000 |
commit | 862116c0d40a7304c458f68c4c725e8a95960588 (patch) | |
tree | 502d5281f70842bbc8ada15d5a03673106b3f61f /protocols/IcqOscarJ/src | |
parent | 04ea225a48f0fe836361882cb0f78e7b99ee582f (diff) |
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
Diffstat (limited to 'protocols/IcqOscarJ/src')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_servlist.cpp | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/protocols/IcqOscarJ/src/icq_servlist.cpp b/protocols/IcqOscarJ/src/icq_servlist.cpp index dac87bdf52..8b7e3aa0cb 100644 --- a/protocols/IcqOscarJ/src/icq_servlist.cpp +++ b/protocols/IcqOscarJ/src/icq_servlist.cpp @@ -2572,7 +2572,7 @@ void CIcqProto::resetServContactAuthState(MCONTACT hContact, DWORD dwUin) *
*/
-int CIcqProto::ServListDbSettingChanged(WPARAM wParam, LPARAM lParam)
+int CIcqProto::ServListDbSettingChanged(WPARAM hContact, LPARAM lParam)
{
DBCONTACTWRITESETTING* cws = (DBCONTACTWRITESETTING*)lParam;
@@ -2590,28 +2590,19 @@ int CIcqProto::ServListDbSettingChanged(WPARAM wParam, LPARAM lParam) if (!strcmpnull(cws->szModule, "CList"))
{
// Has contact been renamed?
- if (!strcmpnull(cws->szSetting, "MyHandle") &&
- getByte("StoreServerDetails", DEFAULT_SS_STORE))
- { // Update contact's details in server-list
- servlistUpdateContact(wParam);
- }
+ if (!strcmpnull(cws->szSetting, "MyHandle") && getByte("StoreServerDetails", DEFAULT_SS_STORE))
+ servlistUpdateContact(hContact); // Update contact's details in server-list
// Has contact been moved to another group?
- if (!strcmpnull(cws->szSetting, "Group") &&
- getByte("StoreServerDetails", DEFAULT_SS_STORE))
- { // Read group from DB
- char* szNewGroup = getContactCListGroup(wParam);
-
+ if (!strcmpnull(cws->szSetting, "Group") && getByte("StoreServerDetails", DEFAULT_SS_STORE)) {
+ char* szNewGroup = getContactCListGroup(hContact); // Read group from DB
SAFE_FREE(&szNewGroup);
}
}
- else if (!strcmpnull(cws->szModule, "UserInfo"))
- {
- if (!strcmpnull(cws->szSetting, "MyNotes") &&
- getByte("StoreServerDetails", DEFAULT_SS_STORE))
- { // Update contact's details in server-list
- servlistUpdateContact(wParam);
- }
+ else if (!strcmpnull(cws->szModule, "UserInfo")) {
+ // Update contact's details in server-list
+ if (!strcmpnull(cws->szSetting, "MyNotes") && getByte("StoreServerDetails", DEFAULT_SS_STORE))
+ servlistUpdateContact(hContact);
}
return 0;
|