# HG changeset patch # User Eric Warmenhoven # Date 967885367 0 # Node ID 97f1ae636ed7ef14aae28d78b4789d416684e55a # Parent 60284aef22f0bc90c22a1a76edbe7a2f398fcb4c [gaim-migrate @ 841] the away message page is about to get a major overhaul committer: Tailor Script diff -r 60284aef22f0 -r 97f1ae636ed7 src/server.c --- a/src/server.c Sat Sep 02 08:42:40 2000 +0000 +++ b/src/server.c Sat Sep 02 09:02:47 2000 +0000 @@ -635,7 +635,9 @@ if ((general_options & OPT_GEN_TIK_HACK) && awaymessage && !strcmp(message, ">>>Automated Message: Getting Away Message<<<")) { - serv_send_im(name, awaymessage->message, 1); + char *tmpmsg = stylize(awaymessage->message, MSG_LEN); + serv_send_im(name, tmpmsg, 1); + g_free(tmpmsg); return; } @@ -699,6 +701,8 @@ escape_text(tmpmsg); escape_message(tmpmsg); serv_send_im(name, away_subs(tmpmsg, name), 1); + g_free(tmpmsg); + tmpmsg = stylize(awaymessage->message, MSG_LEN); if (is_idle == -1) is_idle = 1; diff -r 60284aef22f0 -r 97f1ae636ed7 src/util.c --- a/src/util.c Sat Sep 02 08:42:40 2000 +0000 +++ b/src/util.c Sat Sep 02 09:02:47 2000 +0000 @@ -1115,20 +1115,37 @@ buf = g_malloc(length); g_snprintf(buf, length, "%s", text); - if (font_options & OPT_FONT_FACE) - { + if (font_options & OPT_FONT_BOLD) { + g_snprintf(tmp, length, "%s", buf); + strcpy(buf, tmp); + } + + if (font_options & OPT_FONT_ITALIC) { + g_snprintf(tmp, length, "%s", buf); + strcpy(buf, tmp); + } + + if (font_options & OPT_FONT_UNDERLINE) { + g_snprintf(tmp, length, "%s", buf); + strcpy(buf, tmp); + } + + if (font_options & OPT_FONT_STRIKE) { + g_snprintf(tmp, length, "%s", buf); + strcpy(buf, tmp); + } + + if (font_options & OPT_FONT_FACE) { g_snprintf(tmp, length, "%s", fontface, buf); strcpy(buf, tmp); } - if (font_options & OPT_FONT_FGCOL) - { + if (font_options & OPT_FONT_FGCOL) { g_snprintf(tmp, length, "%s", fgcolor.red, fgcolor.green, fgcolor.blue, buf); strcpy(buf, tmp); } - if (font_options & OPT_FONT_BGCOL) - { + if (font_options & OPT_FONT_BGCOL) { g_snprintf(tmp, length, "%s", bgcolor.red, bgcolor.green, bgcolor.blue, buf); strcpy(buf, tmp); }