cpw.rekkanoryo.icqxstatus: e2af1568: Do not show "Mood: mood ()" when there i...

rlaager at pidgin.im rlaager at pidgin.im
Sun Nov 16 14:21:12 EST 2008


-----------------------------------------------------------------
Revision: e2af156847995649f686f1b8bec711fd4b67dd73
Ancestor: 1d07a2f9f8cc21618544ad75dc099a9777bcdd0b
Author: rlaager at pidgin.im
Date: 2008-11-16T18:56:16
Branch: im.pidgin.cpw.rekkanoryo.icqxstatus
URL: http://d.pidgin.im/viewmtn/revision/info/e2af156847995649f686f1b8bec711fd4b67dd73

Modified files:
        libpurple/protocols/jabber/jabber.c

ChangeLog: 

Do not show "Mood: mood ()" when there is no text.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jabber.c	7ae43cf5a01de166b8e02df1e8f6f4ec195540b4
+++ libpurple/protocols/jabber/jabber.c	2db7f9b3baac84f5ab3b288d94b68a90db8f8bab
@@ -1572,7 +1572,7 @@ void jabber_tooltip_text(PurpleBuddy *b,
 			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);


More information about the Commits mailing list