diff options
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 2 | ||||
-rw-r--r-- | protocols/FacebookRM/src/proto.cpp | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index 3212fe1bc5..68159e5672 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -750,7 +750,7 @@ void FacebookProto::SearchAckThread(void *targ) std::string id = utils::text::source_get_value2(&item, "?id=", "&\"");
if (id.empty())
- id = utils::text::source_get_value2(&item, "?slog=", "&\"");
+ id = utils::text::source_get_value2(&item, "?ids=", "&\"");
std::string name = utils::text::source_get_value(&item, 4, "<td class=\"name\">", "<a", ">", "</");
std::string surname;
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index 224a9768f3..793d99b8fd 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -251,6 +251,11 @@ HANDLE FacebookProto::AddToList(int flags, PROTOSEARCHRESULT* psr) fbu.real_name += surname;
}
+ if (fbu.user_id.find_first_not_of("0123456789") != std::string::npos) {
+ MessageBox(0, TranslateT("Facebook ID must be numeric value."), m_tszUserName, MB_ICONERROR | MB_OK);
+ return NULL;
+ }
+
HANDLE hContact = AddToContactList(&fbu, CONTACT_NONE);
if (hContact) {
if (flags & PALF_TEMPORARY) {
|