diff options
author | George Hazan <george.hazan@gmail.com> | 2012-11-10 21:36:54 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-11-10 21:36:54 +0000 |
commit | 9c2e0c8b025c98cbff2975e6dd9c86e03cd04244 (patch) | |
tree | bd95b8ef2753ef3f2b3701bfe350eb7682794319 /plugins/AVS/src | |
parent | f22d8982b41614d703b0db98264e01ef7049a4a0 (diff) |
code cleaning for ME_DB_CONTACT_SETTINGCHANGED in plugins
git-svn-id: http://svn.miranda-ng.org/main/trunk@2283 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AVS/src')
-rw-r--r-- | plugins/AVS/src/main.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/AVS/src/main.cpp b/plugins/AVS/src/main.cpp index 8a7e5d75ea..91ba752a27 100644 --- a/plugins/AVS/src/main.cpp +++ b/plugins/AVS/src/main.cpp @@ -2132,21 +2132,16 @@ static INT_PTR ReportMyAvatarChanged(WPARAM wParam, LPARAM lParam) static int ContactSettingChanged(WPARAM wParam, LPARAM lParam)
{
DBCONTACTWRITESETTING *cws = (DBCONTACTWRITESETTING *) lParam;
-
if (cws == NULL || g_shutDown)
return 0;
if (wParam == 0) {
- if (!strcmp(cws->szSetting, "AvatarFile")
- || !strcmp(cws->szSetting, "PictObject")
- || !strcmp(cws->szSetting, "AvatarHash")
- || !strcmp(cws->szSetting, "AvatarSaved"))
- {
+ if (!strcmp(cws->szSetting, "AvatarFile") || !strcmp(cws->szSetting, "PictObject") || !strcmp(cws->szSetting, "AvatarHash") || !strcmp(cws->szSetting, "AvatarSaved"))
ReportMyAvatarChanged((WPARAM) cws->szModule, 0);
- }
return 0;
}
- else if (g_MetaAvail && !strcmp(cws->szModule, g_szMetaName)) {
+
+ if (g_MetaAvail && !strcmp(cws->szModule, g_szMetaName)) {
if (lstrlenA(cws->szSetting) > 6 && !strncmp(cws->szSetting, "Status", 5))
MetaChanged(wParam, 0);
}
|