summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorPiotr Piastucki <leech.miranda@gmail.com>2015-09-26 20:12:20 +0000
committerPiotr Piastucki <leech.miranda@gmail.com>2015-09-26 20:12:20 +0000
commitf39ae4d18491d9d6df785f32c92407ab2df41950 (patch)
tree68d156c308c9158c223fbfddf21aa913ed633f1e /protocols
parent42908f046513550673aeb2f61edc04b2d6c63302 (diff)
MSN: Extract URL of posted file link and append to text, otherwise it would be filtered.
git-svn-id: http://svn.miranda-ng.org/main/trunk@15453 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/MSN/src/msn_commands.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/MSN/src/msn_commands.cpp b/protocols/MSN/src/msn_commands.cpp
index cf4a7054f0..f980b116fb 100644
--- a/protocols/MSN/src/msn_commands.cpp
+++ b/protocols/MSN/src/msn_commands.cpp
@@ -500,7 +500,10 @@ void CMsnProto::MSN_ProcessURIObject(MCONTACT hContact, ezxml_t xmli)
CallService(MS_PROTO_CONTACTISTYPING, WPARAM(hContact), 0);
PROTORECVEVENT pre = { 0 };
- pre.szMessage = (char*)ezxml_txt(xmli);
+ CMStringA msgtxt((char*)ezxml_txt(xmli));
+ ezxml_t urllnk;
+ if (urllnk=ezxml_child(xmli, "a")) msgtxt.AppendFormat(" %s", ezxml_txt(urllnk));
+ pre.szMessage = (char*)(const char*)msgtxt;
pre.timestamp = (DWORD)time(NULL);
ProtoChainRecvMsg(hContact, &pre);
}