src/protocols/jabber/presence.c

changeset 11872
05cdcbf6f145
parent 11718
90804d019837
child 12265
8b65304c4d30
--- a/src/protocols/jabber/presence.c	Fri Oct 28 08:35:48 2005 +0000
+++ b/src/protocols/jabber/presence.c	Fri Oct 28 14:12:07 2005 +0000
@@ -599,6 +599,10 @@
 		if(msg)
 			*msg = gaim_status_get_attr_string(status, "message");
 
+		/* if the message is blank, then there really isn't a message */
+		if(*msg && !**msg)
+			*msg = NULL;
+
 		if(priority)
 			*priority = gaim_status_get_attr_int(status, "priority");
 	}

mercurial