Mercurial > hg
diff mcabber/src/jabglue.c @ 537:6547fd48fb5e
Buddy status change was not always displayed
Buddy status change was not displayed when the status stays the same but the
status message is removed.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 25 Nov 2005 23:07:21 +0100 |
parents | b407d19c39ab |
children | 6310b928d04a |
line wrap: on
line diff
--- a/mcabber/src/jabglue.c Fri Nov 25 23:04:20 2005 +0100 +++ b/mcabber/src/jabglue.c Fri Nov 25 23:07:21 2005 +0100 @@ -1332,7 +1332,8 @@ // Not a MUC message, so this is a regular buddy... m = roster_getstatusmsg(r, rname); - if ((ust != roster_getstatus(r, rname)) || (s && (!m || strcmp(s, m)))) + if ((ust != roster_getstatus(r, rname)) || + (!s && m && m[0]) || (s && (!m || strcmp(s, m)))) hk_statuschange(r, rname, bpprio, 0, ust, s); g_free(r); if (s) g_free(s);