Mercurial > pidgin
changeset 1463:2f317467d2f9
[gaim-migrate @ 1473]
fix < :) >
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 03 Feb 2001 08:28:27 +0000 |
parents | 1ac49082e099 |
children | ae075ecc7c34 |
files | src/gtkimhtml.c |
diffstat | 1 files changed, 16 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtml.c Sat Feb 03 08:19:40 2001 +0000 +++ b/src/gtkimhtml.c Sat Feb 03 08:28:27 2001 +0000 @@ -2479,9 +2479,22 @@ } if (!got_tag) { - ws [wpos] = 0; - strcat (ws, tag); - wpos = strlen (ws); + char *d; + tag [tpos] = 0; + d = tag; + while (*d) { + if ((smilelen = gtk_imhtml_is_smiley (imhtml, d)) != 0) { + ws [wpos] = 0; + wpos = 0; + NEW_BIT (NEW_TEXT_BIT); + g_snprintf (ws, smilelen + 1, "%s", d); + NEW_BIT (NEW_SMILEY_BIT); + d += smilelen; + } else { + ws [wpos++] = *d++; + } + } + tpos = 0; } else { wpos = 0; }