diff options
author | Robert Pösel <robyer@seznam.cz> | 2012-11-03 19:44:48 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2012-11-03 19:44:48 +0000 |
commit | af54d0aa9a04ffa55e25c74e383521e5954b5aa1 (patch) | |
tree | 55d8ac5d91ee9bfe3f4b0209d7ca7a3c788619fa /protocols/FacebookRM/src/json.cpp | |
parent | 2a75d6a9c47f6c09269303f04f066c390f5c48b4 (diff) |
Facebook: Options cleanup.
git-svn-id: http://svn.miranda-ng.org/main/trunk@2172 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/json.cpp')
-rw-r--r-- | protocols/FacebookRM/src/json.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp index e79c6966cd..2c03c36a7d 100644 --- a/protocols/FacebookRM/src/json.cpp +++ b/protocols/FacebookRM/src/json.cpp @@ -391,40 +391,6 @@ int facebook_json_parser::parse_messages( void* data, std::vector< facebook_mess }
}
}
- else if ( type.Value( ) == "group_msg" ) // chat message
- {
- if (!DBGetContactSettingByte(NULL,proto->m_szModuleName,FACEBOOK_KEY_ENABLE_GROUPCHATS, DEFAULT_ENABLE_GROUPCHATS))
- continue;
-
- const String& from_name = objMember["from_name"];
-
- const Number& to = objMember["to"];
- char group_id[32];
- lltoa( to.Value(), group_id, 10 );
-
- const Number& from = objMember["from"];
- char was_id[32];
- lltoa( from.Value(), was_id, 10 );
-
- const Object& messageContent = objMember["msg"];
- const String& text = messageContent["text"];
-
- std::string msg = utils::text::special_expressions_decode(
- utils::text::slashu_to_utf8( text.Value( )) );
-
- std::string name = utils::text::special_expressions_decode(
- utils::text::slashu_to_utf8( from_name.Value( )) );
-
- // Add contact into chat, if isn't there already
- if (!proto->IsChatContact(group_id, was_id))
- proto->AddChatContact(group_id, was_id, name.c_str());
-
- const Number& time_sent = messageContent["time"];
- DWORD timestamp = utils::time::fix_timestamp( time_sent.Value());
-
- // Add message into chat
- proto->UpdateChat(group_id, was_id, name.c_str(), msg.c_str(), timestamp);
- }
else if ( type.Value( ) == "thread_msg" ) // multiuser message
{
const String& from_name = objMember["from_name"];
|