changeset 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 bbc06845d96b
children 1034b0d09398
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 19:10:57 2008 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Sun Nov 16 19:17:07 2008 +0000
@@ -1569,7 +1569,7 @@
 
 			status = purple_presence_get_active_status(presence);
 			mood = purple_status_get_attr_string(status, "mood");
-			if(mood != NULL) {
+			if(mood && *mood) {
 				const char *moodtext;
 				moodtext = purple_status_get_attr_string(status, "moodtext");
 				if(moodtext && *moodtext) {