summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/messages.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-07-30 23:15:51 +0000
committerRobert Pösel <robyer@seznam.cz>2014-07-30 23:15:51 +0000
commit548bcad3fa31c55c33200c3516a5a537ca5e3f0d (patch)
tree1c5cd7bfe77ed80f35517eb3b2f4e3b98030aef7 /protocols/FacebookRM/src/messages.cpp
parent3e7ef2c033af2cc511f83a8f154f129394f3832b (diff)
Facebook: Fix sending and receiving % in chats
git-svn-id: http://svn.miranda-ng.org/main/trunk@10001 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/messages.cpp')
-rw-r--r--protocols/FacebookRM/src/messages.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp
index f54312b8d6..559377c02d 100644
--- a/protocols/FacebookRM/src/messages.cpp
+++ b/protocols/FacebookRM/src/messages.cpp
@@ -80,6 +80,9 @@ void FacebookProto::SendChatMsgWorker(void *p)
send_chat *data = static_cast<send_chat*>(p);
std::string err_message = "";
+ // replace %% back to %, because chat automatically does this to sent messages
+ utils::text::replace_all(&data->msg, "%%", "%");
+
MCONTACT hContact = ChatIDToHContact(std::tstring(_A2T(data->chat_id.c_str())));
if (hContact) {
std::string tid;