From 30aa26c864fa09b974e3c223ccf907421ebc0759 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 10 Apr 2018 13:11:16 +0300 Subject: obsolete compatibility code removed from AVS --- plugins/UserInfoEx/src/svc_avatar.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/UserInfoEx/src') 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); } -- cgit v1.2.3