Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/google.c @ 27894:f3477b0d32f4
improved "now listening" status support.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Fri, 03 Oct 2008 12:17:03 +0000 |
parents | e1bddd9c5c88 |
children | d8e6a2d592a4 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/google.c Sat Sep 27 14:21:37 2008 +0000 +++ b/libpurple/protocols/jabber/google.c Fri Oct 03 12:17:03 2008 +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 @@ -512,8 +513,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");