diff options
author | Robert Pösel <robyer@seznam.cz> | 2012-12-13 09:00:44 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2012-12-13 09:00:44 +0000 |
commit | a6203909a9b4bfbae252ab5b7c616309119d84b3 (patch) | |
tree | b19afdb59ac4afd10dba681ef7c47e16b375d37d /protocols/FacebookRM/src/process.cpp | |
parent | e23f51997817bdaa549fbed05c9eabb83824c8ed (diff) |
FacebookRM: Experimental and buggy support for custom smileys
git-svn-id: http://svn.miranda-ng.org/main/trunk@2734 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index 9d19c6ddcc..75d1c05dda 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -390,11 +390,14 @@ void FacebookProto::ProcessUnreadMessages( void* ) }
std::string message_text = messagesgroup.substr(pos3, messagesgroup.find( "<\\/div", pos3 ) + 6 - pos3);
+ LOG("Got unread message: \"%s\"", message_text.c_str());
message_text = utils::text::source_get_value( &message_text, 2, "\\\">", "<\\/div" );
message_text = utils::text::trim(
utils::text::special_expressions_decode(
utils::text::remove_html( message_text )) );
+ parseSmileys(message_text, hContact);
+
if (!message_attachments.empty()) {
if (!message_text.empty())
message_text += "\r\n\r\n";
@@ -454,6 +457,8 @@ void FacebookProto::ProcessMessages( void* data ) // TODO: if contact is newly added, get his user info
// TODO: maybe create new "receiveMsg" function and use it for offline and channel messages?
+ parseSmileys(messages[i]->message_text, hContact);
+
PROTORECVEVENT recv = {0};
recv.flags = PREF_UTF;
recv.szMessage = const_cast<char*>(messages[i]->message_text.c_str());
|