From f39ae4d18491d9d6df785f32c92407ab2df41950 Mon Sep 17 00:00:00 2001
From: Piotr Piastucki <leech.miranda@gmail.com>
Date: Sat, 26 Sep 2015 20:12:20 +0000
Subject: 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
---
 protocols/MSN/src/msn_commands.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'protocols/MSN')

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);
 		}
-- 
cgit v1.2.3