diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-30 22:53:24 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-30 22:53:24 +0000 |
commit | bb3a9a32fda97426bf7f05b04724d894eb4399c7 (patch) | |
tree | 4591c0d10d429b380d542d733f3bae3df34a2966 /protocols/JabberG/src/jabber_groupchat.cpp | |
parent | 27116b65cabb181630170eea15a987dc9395fd85 (diff) |
patch for the embedded images processing
git-svn-id: http://svn.miranda-ng.org/main/trunk@13920 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_groupchat.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_groupchat.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_groupchat.cpp b/protocols/JabberG/src/jabber_groupchat.cpp index 976c864f5e..4736324897 100644 --- a/protocols/JabberG/src/jabber_groupchat.cpp +++ b/protocols/JabberG/src/jabber_groupchat.cpp @@ -1033,6 +1033,7 @@ void CJabberProto::GroupchatProcessMessage(HXML node) HXML n, m;
const TCHAR *from, *type, *p, *nick, *resource;
JABBER_LIST_ITEM *item;
+ CMString imgLink;
if (!xmlGetName(node) || mir_tstrcmp(xmlGetName(node), _T("message"))) return;
if ((from = xmlGetAttrValue(node, _T("from"))) == NULL) return;
@@ -1073,6 +1074,8 @@ void CJabberProto::GroupchatProcessMessage(HXML node) item->getTemp()->m_tszStatusMessage = mir_tstrdup(msgText);
}
else {
+ imgLink = ExtractImage(node);
+
if ((n = xmlGetChildByTag(node, "body", "xml:lang", m_tszSelectedLang)) == NULL)
if ((n = xmlGetChild(node, "body")) == NULL)
return;
@@ -1112,6 +1115,7 @@ void CJabberProto::GroupchatProcessMessage(HXML node) CMString tszText(msgText);
tszText.Replace(_T("%"), _T("%%"));
+ tszText += imgLink;
GCEVENT gce = { sizeof(gce), &gcd };
gce.ptszUID = resource;
|