From 6002785ecb577a0d2495861a94aaa6a9044c3fe6 Mon Sep 17 00:00:00 2001 From: leecher1337 Date: Sun, 4 Dec 2016 23:09:03 +0100 Subject: MSN: Added support for file transfer type RichText/Media_GenericFile --- protocols/MSN/src/msn_commands.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/MSN/src/msn_commands.cpp b/protocols/MSN/src/msn_commands.cpp index 4ddfca2196..984c65e2cf 100644 --- a/protocols/MSN/src/msn_commands.cpp +++ b/protocols/MSN/src/msn_commands.cpp @@ -246,7 +246,7 @@ void CMsnProto::MSN_ReceiveMessage(ThreadData* info, char* cmdString, char* para (!_strnicmp(tContentType, "application/user+xml", 10) && tHeader["Message-Type"] && !strncmp(tHeader["Message-Type"], "RichText", 8))) { MCONTACT hContact = strncmp(email, "19:", 3)?MSN_HContactFromEmail(email, nick, true, true):NULL; - if (!_stricmp(tHeader["Message-Type"], "RichText/UriObject")) { + if (!_stricmp(tHeader["Message-Type"], "RichText/UriObject") || !_stricmp(tHeader["Message-Type"], "RichText/Media_GenericFile")) { ezxml_t xmli = ezxml_parse_str(msgBody, strlen(msgBody)); if (xmli) { MSN_ProcessURIObject(hContact, xmli); @@ -1151,7 +1151,7 @@ LBL_InvalidCommand: ezxml_free(xmlact); } continue; - } else if (!mir_strcmp(msgtype->txt, "RichText/UriObject")) { + } else if (!mir_strcmp(msgtype->txt, "RichText/UriObject") || !mir_strcmp(msgtype->txt, "RichText/Media_GenericFile")) { if (ezxml_t xmlact = ezxml_parse_str(content->txt, mir_strlen(content->txt))) { MSN_ProcessURIObject(hContact, xmlact); ezxml_free(xmlact); -- cgit v1.2.3