changeset 26871:f47f6f6ba439

Preserve utf-8 status messages when going idle.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 13 May 2009 16:01:25 +0000
parents 92565c8e1e3a
children 91c8f6368a8c
files libpurple/protocols/yahoo/yahoo.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c	Tue May 12 05:49:34 2009 +0000
+++ b/libpurple/protocols/yahoo/yahoo.c	Wed May 13 16:01:25 2009 +0000
@@ -4753,8 +4753,10 @@
 			status = purple_presence_get_active_status(purple_account_get_presence(purple_connection_get_account(gc)));
 		tmp = purple_status_get_attr_string(status, "message");
 		if (tmp != NULL) {
-			msg = yahoo_string_encode(gc, tmp, NULL);
+			gboolean utf8 = TRUE;
+			msg = yahoo_string_encode(gc, tmp, &utf8);
 			msg2 = purple_markup_strip_html(msg);
+			yahoo_packet_hash_str(pkt, 97, utf8 ? "1" : 0);
 			yahoo_packet_hash_str(pkt, 19, msg2);
 		} else {
 			/* get_yahoo_status_from_purple_status() returns YAHOO_STATUS_CUSTOM for