summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/utils.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-07-12 14:12:18 +0000
committerRobert Pösel <robyer@seznam.cz>2013-07-12 14:12:18 +0000
commit12700d9f44720743b82b9129ca16073e4418a362 (patch)
treec0749f87862353aa7f4e2b8b92294580b989eca8 /protocols/FacebookRM/src/utils.cpp
parente015cc2a31073e26d46d83b5a64c69fd8cee5992 (diff)
Facebook:
- added ability to search friends by ID or username - fixed crash when using AddContactPlus git-svn-id: http://svn.miranda-ng.org/main/trunk@5341 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/utils.cpp')
-rw-r--r--protocols/FacebookRM/src/utils.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/utils.cpp b/protocols/FacebookRM/src/utils.cpp
index 44de994a73..6851154a89 100644
--- a/protocols/FacebookRM/src/utils.cpp
+++ b/protocols/FacebookRM/src/utils.cpp
@@ -405,7 +405,7 @@ std::string utils::text::source_get_value(std::string* data, unsigned int argume
return ret;
}
-std::string utils::text::source_get_value2(std::string* data, const char *term, const char *endings)
+std::string utils::text::source_get_value2(std::string* data, const char *term, const char *endings, bool wholeString)
{
std::string::size_type start = 0, end = 0;
std::string ret;
@@ -417,6 +417,8 @@ std::string utils::text::source_get_value2(std::string* data, const char *term,
end = data->find_first_of(endings, start);
if (end != std::string::npos) {
ret = data->substr(start, end - start);
+ } else if (wholeString) {
+ ret = data->substr(start);
}
}