diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-22 20:07:02 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-22 20:07:02 +0000 |
commit | ac30cebf480452716050fdce32fd2b64590d64ff (patch) | |
tree | dc55a961efe23cebe104158ad13d4bf7c1c82fd3 /protocols | |
parent | b9df415b8634e3c91dc770e360339308951bda39 (diff) |
SkypeWeb: ooops.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13042 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/SkypeWeb/src/skype_contacts.cpp | 6 |
1 files 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));
}
|