Mercurial > pidgin.yaz
diff src/conversation.c @ 1370:776bb4c6c0b8
[gaim-migrate @ 1380]
woohoo. no more HTML codes in protocols that don't support them.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 04 Jan 2001 21:59:35 +0000 |
parents | 2e8213567278 |
children | f6b0cf1f4c3b |
line wrap: on
line diff
--- a/src/conversation.c Wed Jan 03 04:36:03 2001 +0000 +++ b/src/conversation.c Thu Jan 04 21:59:35 2001 +0000 @@ -623,41 +623,43 @@ buf2 = g_malloc(limit); - if (font_options & OPT_FONT_BOLD) { - g_snprintf(buf2, limit, "<B>%s</B>", buf); - strcpy(buf, buf2); - } + if (c->gc->prpl->options & OPT_PROTO_HTML) { + if (font_options & OPT_FONT_BOLD) { + g_snprintf(buf2, limit, "<B>%s</B>", buf); + strcpy(buf, buf2); + } - if (font_options & OPT_FONT_ITALIC) { - g_snprintf(buf2, limit, "<I>%s</I>", buf); - strcpy(buf, buf2); - } + if (font_options & OPT_FONT_ITALIC) { + g_snprintf(buf2, limit, "<I>%s</I>", buf); + strcpy(buf, buf2); + } - if (font_options & OPT_FONT_UNDERLINE) { - g_snprintf(buf2, limit, "<U>%s</U>", buf); - strcpy(buf, buf2); - } + if (font_options & OPT_FONT_UNDERLINE) { + g_snprintf(buf2, limit, "<U>%s</U>", buf); + strcpy(buf, buf2); + } - if (font_options & OPT_FONT_STRIKE) { - g_snprintf(buf2, limit, "<STRIKE>%s</STRIKE>", buf); - strcpy(buf, buf2); - } + if (font_options & OPT_FONT_STRIKE) { + g_snprintf(buf2, limit, "<STRIKE>%s</STRIKE>", buf); + strcpy(buf, buf2); + } - if ((font_options & OPT_FONT_FACE) || c->hasfont) { - g_snprintf(buf2, limit, "<FONT FACE=\"%s\">%s</FONT>", c->fontface, buf); - strcpy(buf, buf2); - } + if ((font_options & OPT_FONT_FACE) || c->hasfont) { + g_snprintf(buf2, limit, "<FONT FACE=\"%s\">%s</FONT>", c->fontface, buf); + strcpy(buf, buf2); + } - if ((font_options & OPT_FONT_FGCOL) || c->hasfg) { - g_snprintf(buf2, limit, "<FONT COLOR=\"#%02X%02X%02X\">%s</FONT>", c->fgcol.red, - c->fgcol.green, c->fgcol.blue, buf); - strcpy(buf, buf2); - } + if ((font_options & OPT_FONT_FGCOL) || c->hasfg) { + g_snprintf(buf2, limit, "<FONT COLOR=\"#%02X%02X%02X\">%s</FONT>", c->fgcol.red, + c->fgcol.green, c->fgcol.blue, buf); + strcpy(buf, buf2); + } - if ((font_options & OPT_FONT_BGCOL) || c->hasbg) { - g_snprintf(buf2, limit, "<BODY BGCOLOR=\"#%02X%02X%02X\">%s</BODY>", c->bgcol.red, - c->bgcol.green, c->bgcol.blue, buf); - strcpy(buf, buf2); + if ((font_options & OPT_FONT_BGCOL) || c->hasbg) { + g_snprintf(buf2, limit, "<BODY BGCOLOR=\"#%02X%02X%02X\">%s</BODY>", c->bgcol.red, + c->bgcol.green, c->bgcol.blue, buf); + strcpy(buf, buf2); + } } {