From ac30cebf480452716050fdce32fd2b64590d64ff Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Wed, 22 Apr 2015 20:07:02 +0000 Subject: SkypeWeb: ooops. git-svn-id: http://svn.miranda-ng.org/main/trunk@13042 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_contacts.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/protocols/SkypeWeb/src/skype_contacts.cpp b/protocols/SkypeWeb/src/skype_contacts.cpp index cff325bc73..f689802f41 100644 --- a/protocols/SkypeWeb/src/skype_contacts.cpp +++ b/protocols/SkypeWeb/src/skype_contacts.cpp @@ -220,8 +220,10 @@ void CSkypeProto::LoadContactList(const NETLIBHTTPREQUEST *response) setByte(hContact, "Grant", 1); node = json_get(item, "blocked"); - setByte(hContact, "IsBlocked", json_as_bool(node)); - db_set_dw(hContact, "Ignore", "Mask1", 127); + bool isBlocked = json_as_bool(node); + setByte(hContact, "IsBlocked", isBlocked); + if (isBlocked) + db_set_dw(hContact, "Ignore", "Mask1", 127); skypenames.insert(mir_strdup(skypename)); } -- cgit v1.2.3