comparison src/protocols/oscar/oscar.c @ 9659:0a82c4662c0d

[gaim-migrate @ 10507] Minor cleanup... committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 04 Aug 2004 02:16:56 +0000
parents 687572cf09a6
children 52319a1d9a55
comparison
equal deleted inserted replaced
9658:0b570eec4eca 9659:0a82c4662c0d
6461 gchar *charset = oscar_encoding_extract(userinfo->away_encoding); 6461 gchar *charset = oscar_encoding_extract(userinfo->away_encoding);
6462 gchar *away_utf8 = oscar_encoding_to_utf8(charset, userinfo->away, userinfo->away_len); 6462 gchar *away_utf8 = oscar_encoding_to_utf8(charset, userinfo->away, userinfo->away_len);
6463 g_free(charset); 6463 g_free(charset);
6464 if (away_utf8 != NULL) { 6464 if (away_utf8 != NULL) {
6465 gchar *tmp1, *tmp2; 6465 gchar *tmp1, *tmp2;
6466 /* tmp1 = gaim_strcasereplace(away_utf8, "<BR>", "\n"); This replacement is handled in strip_html.
6467 * g_free(away_utf8);
6468 */
6469 tmp2 = gaim_markup_strip_html(away_utf8); 6466 tmp2 = gaim_markup_strip_html(away_utf8);
6470 g_free(away_utf8); 6467 g_free(away_utf8);
6471 tmp1 = gaim_escape_html(tmp2); 6468 tmp1 = gaim_escape_html(tmp2);
6472 g_free(tmp2); 6469 g_free(tmp2);
6473 tmp2 = gaim_str_sub_away_formatters(tmp1, gaim_account_get_username(gaim_connection_get_account(gc))); 6470 tmp2 = gaim_str_sub_away_formatters(tmp1, gaim_account_get_username(gaim_connection_get_account(gc)));
6474 g_free(tmp1); 6471 g_free(tmp1);
6475 g_string_append_printf(str, "\n<b>%s:</b> %s", _("Away Message"), tmp2); 6472 g_string_append_printf(str, "\n<b>%s:</b> %s", _("Away Message"), tmp2);
6476
6477 g_free(tmp2); 6473 g_free(tmp2);
6478 } 6474 }
6479 } 6475 }
6480 } 6476 }
6481 6477