summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/json.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-10-02 10:38:56 +0000
committerRobert Pösel <robyer@seznam.cz>2013-10-02 10:38:56 +0000
commit7f920402def20a9d2a3d95defc53877b2cbe2990 (patch)
treee31d665868682af42f67d6a9bfba1a3e6ce9e138 /protocols/FacebookRM/src/json.cpp
parent19ccfc7c1220fdf728f67e466081960e19b00b06 (diff)
Facebook: get rid of validate_response forever
git-svn-id: http://svn.miranda-ng.org/main/trunk@6305 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/json.cpp')
-rw-r--r--protocols/FacebookRM/src/json.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp
index 529dd8abd1..df43cf9466 100644
--- a/protocols/FacebookRM/src/json.cpp
+++ b/protocols/FacebookRM/src/json.cpp
@@ -84,7 +84,7 @@ int facebook_json_parser::parse_buddy_list(void* data, List::List< facebook_user
}
}
- // Find now awailable contacts
+ // Find now available contacts
JSONNODE *nowAvailable = json_get(list, "nowAvailableList");
if (nowAvailable != NULL) {
for (unsigned int i = 0; i < json_size(nowAvailable); i++) {
@@ -295,7 +295,7 @@ void parseAttachments(FacebookProto *proto, std::string *message_text, JSONNODE
if (!message_text->empty())
*message_text += "\n\n";
- // we can use this as offline messages doesn't have it
+ // we can't use this as offline messages doesn't have it
/* JSONNODE *admin_snippet = json_get(it, "admin_snippet");
if (admin_snippet != NULL) {
*message_text += json_as_pstring(admin_snippet);
@@ -435,8 +435,6 @@ int facebook_json_parser::parse_messages(void* data, std::vector< facebook_messa
resp = proto->facy.flap(REQUEST_USER_INFO, NULL, &search);
}
- proto->facy.validate_response(&resp);
-
if (resp.code == HTTP_CODE_OK) {
std::string about = utils::text::source_get_value(&resp.data, 2, "<div class=\"timeline", "<div id=\"footer");
@@ -542,8 +540,8 @@ int facebook_json_parser::parse_messages(void* data, std::vector< facebook_messa
}
std::string senderName = json_as_string(sender_name);
- std::string::size_type pos;
- /*if ((pos = senderName.find(" ")) != std::string::npos) {
+ /*std::string::size_type pos;
+ if ((pos = senderName.find(" ")) != std::string::npos) {
senderName = senderName.substr(0, pos);
}*/