summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleecher1337 <leecher@dose.0wnz.at>2016-12-04 23:09:03 +0100
committerleecher1337 <leecher@dose.0wnz.at>2016-12-04 23:09:03 +0100
commit6002785ecb577a0d2495861a94aaa6a9044c3fe6 (patch)
treee50d7fa1102a454740101c89d0e59bb0acda76e3
parentb3aa5ef57f1d8d86c59cf94b43cf030fb10c8640 (diff)
MSN: Added support for file transfer type RichText/Media_GenericFile
-rw-r--r--protocols/MSN/src/msn_commands.cpp4
1 files 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);