Mercurial > pidgin
comparison libpurple/protocols/jabber/jabber.c @ 29433:37be968cd42c
Check that mood is not the empty string, just to be safe.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 16 Nov 2008 19:17:07 +0000 |
parents | b0e7b4daf465 |
children | 11cb7f2bb6e8 |
comparison
equal
deleted
inserted
replaced
29432:bbc06845d96b | 29433:37be968cd42c |
---|---|
1567 | 1567 |
1568 purple_notify_user_info_add_pair(user_info, _("Subscription"), sub); | 1568 purple_notify_user_info_add_pair(user_info, _("Subscription"), sub); |
1569 | 1569 |
1570 status = purple_presence_get_active_status(presence); | 1570 status = purple_presence_get_active_status(presence); |
1571 mood = purple_status_get_attr_string(status, "mood"); | 1571 mood = purple_status_get_attr_string(status, "mood"); |
1572 if(mood != NULL) { | 1572 if(mood && *mood) { |
1573 const char *moodtext; | 1573 const char *moodtext; |
1574 moodtext = purple_status_get_attr_string(status, "moodtext"); | 1574 moodtext = purple_status_get_attr_string(status, "moodtext"); |
1575 if(moodtext && *moodtext) { | 1575 if(moodtext && *moodtext) { |
1576 char *moodplustext = g_strdup_printf("%s (%s)", mood, moodtext); | 1576 char *moodplustext = g_strdup_printf("%s (%s)", mood, moodtext); |
1577 | 1577 |