diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-05-03 08:57:07 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-05-03 08:57:07 +0000 |
commit | 6b0e2e70e2cf701dfb3338379598efe2f168e859 (patch) | |
tree | f2de5b3fe9e13d5948ebeb86a18cd9327d729b1d /protocols/Steam/src/Steam/friend_list.h | |
parent | 70436074ae8f66a092d0212fb8b99b94d0fd03a6 (diff) |
Steam: added "Request authorization" contact menu item
git-svn-id: http://svn.miranda-ng.org/main/trunk@9109 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/Steam/friend_list.h')
-rw-r--r-- | protocols/Steam/src/Steam/friend_list.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/protocols/Steam/src/Steam/friend_list.h b/protocols/Steam/src/Steam/friend_list.h index 4ce1ae1aec..a7defd8b8e 100644 --- a/protocols/Steam/src/Steam/friend_list.h +++ b/protocols/Steam/src/Steam/friend_list.h @@ -120,9 +120,16 @@ namespace SteamWebApi return;
JSONNODE *root = json_parse(response->pData), *node;
+
+ //{"failed_invites":["xxxxxxxxxxxxxxxxx"], "failed_invites_result" : [41], "success" : 1}
+ /*bool fail = false;
+ node = json_get(root, "failed_invites_result");
+ if (node)
+ fail = true;*/
+
node = json_get(root, "success");
- if ((result->status = (HTTP_STATUS)response->resultCode) != HTTP_STATUS_OK || json_as_int(node) == 0)
+ if ((result->status = (HTTP_STATUS)response->resultCode) != HTTP_STATUS_OK || json_as_int(node) == 0/* || fail*/)
return;
result->success = true;
|