diff libpurple/protocols/jabber/google.c @ 27960:f058edca3d66

propagate from branch 'im.pidgin.pidgin' (head 832a8f3c3faf1fbbc69e803c6a1830896dd05e1f) to branch 'im.pidgin.pidgin.yaz' (head a7ba40d2c1b77e07fc3ed4a68afd7a7e137d0dbb)
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 04 Jul 2009 23:14:35 +0000
parents 5afc3577b8cd c815b2aa78ee
children e1cd44c7c7af
line wrap: on
line diff
--- a/libpurple/protocols/jabber/google.c	Sat Jul 04 22:27:37 2009 +0000
+++ b/libpurple/protocols/jabber/google.c	Sat Jul 04 23:14:35 2009 +0000
@@ -1,3 +1,4 @@
+/* -*- coding: utf-8 -*- */
 /**
  * Purple is the legal property of its developers, whose names are too numerous
  * to list here.  Please refer to the COPYRIGHT file distributed with this
@@ -1295,8 +1296,11 @@
 	if (!js->googletalk)
 		return;
 	if (jbr->status && !strncmp(jbr->status, "♫ ", strlen("♫ "))) {
+		gchar *unescaped;
+		unescaped = purple_unescape_html(jbr->status + strlen("♫ "));
 		purple_prpl_got_user_status(js->gc->account, user, "tune",
-					    PURPLE_TUNE_TITLE, jbr->status + strlen("♫ "), NULL);
+					    PURPLE_TUNE_TITLE, unescaped, NULL);
+		g_free(unescaped);
 		jbr->status = NULL;
 	} else {
 		purple_prpl_got_user_status_deactive(js->gc->account, user, "tune");