diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-10 13:11:16 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-10 13:11:16 +0300 |
commit | 30aa26c864fa09b974e3c223ccf907421ebc0759 (patch) | |
tree | 242d5635daec062b22a166c1047810ae4b54a8bc /plugins/UserInfoEx | |
parent | da8d306b9d6fbe48f04f56d78be2058873f03dbc (diff) |
obsolete compatibility code removed from AVS
Diffstat (limited to 'plugins/UserInfoEx')
-rw-r--r-- | plugins/UserInfoEx/src/svc_avatar.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/UserInfoEx/src/svc_avatar.cpp b/plugins/UserInfoEx/src/svc_avatar.cpp index 6fe5421881..6fab5abbbb 100644 --- a/plugins/UserInfoEx/src/svc_avatar.cpp +++ b/plugins/UserInfoEx/src/svc_avatar.cpp @@ -79,10 +79,8 @@ namespace NServices if (hContact) {
// check valid parameters
if (ace) {
- if (// check for correct structure
- ace->cbSize == sizeof(AVATARCACHEENTRY) &&
- // set zodiac as avatar either if the desired avatar is invalid or a general protocol picture
- ((ace->dwFlags & AVS_PROTOPIC) || !(ace->dwFlags & AVS_BITMAP_VALID))) {
+ // set zodiac as avatar either if the desired avatar is invalid or a general protocol picture
+ if (((ace->dwFlags & AVS_PROTOPIC) || !(ace->dwFlags & AVS_BITMAP_VALID))) {
if (!db_get_b(hContact, "ContactPhoto", "IsZodiac", 0))
SetZodiacAvatar(hContact);
}
|