Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 13600:e1c81d199ee0
[gaim-migrate @ 15986]
Rewrote oscar's incoming direct IM handler to make it more a bit
less fragile if the format of the incoming IM ever changes.
For example, now the binary chunks can be in a different order
than the img tags
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 09 Apr 2006 21:37:12 +0000 |
parents | 4d8927a4f1ef |
children | 009a1e608419 |
comparison
equal
deleted
inserted
replaced
13599:9f633bd09463 | 13600:e1c81d199ee0 |
---|---|
1839 char *iconfile; | 1839 char *iconfile; |
1840 GString *message; | 1840 GString *message; |
1841 gchar *tmp; | 1841 gchar *tmp; |
1842 aim_mpmsg_section_t *curpart; | 1842 aim_mpmsg_section_t *curpart; |
1843 const char *start; | 1843 const char *start; |
1844 const char *end; | |
1845 GData *attribs; | 1844 GData *attribs; |
1846 | 1845 |
1847 gaim_debug_misc("oscar", "Received IM from %s with %d parts\n", | 1846 gaim_debug_misc("oscar", "Received IM from %s with %d parts\n", |
1848 userinfo->sn, args->mpmsg.numparts); | 1847 userinfo->sn, args->mpmsg.numparts); |
1849 | 1848 |
1935 } | 1934 } |
1936 | 1935 |
1937 /* | 1936 /* |
1938 * Convert iChat color tags to normal font tags. | 1937 * Convert iChat color tags to normal font tags. |
1939 */ | 1938 */ |
1940 if (gaim_markup_find_tag("body", tmp, &start, &end, &attribs)) | 1939 if (gaim_markup_find_tag("body", tmp, &start, NULL, &attribs)) |
1941 { | 1940 { |
1942 const char *ichattextcolor, *ichatballooncolor; | 1941 const char *ichattextcolor, *ichatballooncolor; |
1943 | 1942 |
1944 ichattextcolor = g_datalist_get_data(&attribs, "ichattextcolor"); | 1943 ichattextcolor = g_datalist_get_data(&attribs, "ichattextcolor"); |
1945 if (ichattextcolor != NULL) | 1944 if (ichattextcolor != NULL) |