Mercurial > pidgin.yaz
changeset 11872:ea0f39933003
[gaim-migrate @ 14163]
quit shoing a blank message when you just want to be "available" on jabber
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 28 Oct 2005 14:12:07 +0000 |
parents | 3404646c6886 |
children | 346bd669c8f2 |
files | src/protocols/jabber/presence.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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"); }