Mercurial > pidgin
changeset 29431:b0e7b4daf465
Do not show "Mood: mood ()" when there is no text.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 16 Nov 2008 18:56:16 +0000 |
parents | 432d9176d054 |
children | bbc06845d96b |
files | libpurple/protocols/jabber/jabber.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c Sun Nov 16 18:53:25 2008 +0000 +++ b/libpurple/protocols/jabber/jabber.c Sun Nov 16 18:56:16 2008 +0000 @@ -1572,7 +1572,7 @@ if(mood != NULL) { const char *moodtext; moodtext = purple_status_get_attr_string(status, "moodtext"); - if(moodtext != NULL) { + if(moodtext && *moodtext) { char *moodplustext = g_strdup_printf("%s (%s)", mood, moodtext); purple_notify_user_info_add_pair(user_info, _("Mood"), moodplustext);