# HG changeset patch # User Kevin Stange # Date 1079893469 0 # Node ID e1c32e741f2d164699253c94cdeeb6afa18e55ed # Parent 0d5e9525305b4220cb25b3376acf157c626e8729 [gaim-migrate @ 9213] " This patch will fix yahoo sending tags when it auto-linkifies links. It converts the tags into proper markup for yahoo links in the manner that marv had previously mentioned to me. This will screw up if people try using the insert link button on the toolbar. That button needs to be disabled through a gaim prpl or connection flag for yahoo, but I am not willing to decide how that should be done." --Kevin Stange committer: Luke Schierer diff -r 0d5e9525305b -r e1c32e741f2d src/protocols/yahoo/util.c --- a/src/protocols/yahoo/util.c Sun Mar 21 06:18:55 2004 +0000 +++ b/src/protocols/yahoo/util.c Sun Mar 21 18:24:29 2004 +0000 @@ -592,6 +592,19 @@ i = t - src; break; } + } else if (!g_ascii_strncasecmp(&src[i+1], "A", j - i - 1)) { + while (1) { + if (++j >= len) { + g_string_append(dest, &src[i]); + i = len; + break; + } + if (src[j] == '>') { + g_string_append(dest, "\033[lm"); + i = j; + break; + } + } } else if (g_ascii_strncasecmp(&src[i+1], "FONT", j - i - 1)) { /* not interested! */ while (1) { if (++j >= len) { @@ -632,6 +645,8 @@ g_string_append(dest, "\033[4m"); } else if (!g_ascii_strncasecmp(&src[i+1], "/U", sublen)) { g_string_append(dest, "\033[x4m"); + } else if (!g_ascii_strncasecmp(&src[i+1], "/A", sublen)) { + g_string_append(dest, "\033[xlm"); } else if (!g_ascii_strncasecmp(&src[i+1], "BR", sublen)) { g_string_append_c(dest, '\n'); } else if (!g_ascii_strncasecmp(&src[i+1], "/BODY", sublen)) {