Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
536:56f641155579 | 537:6547fd48fb5e |
---|---|
1330 break; | 1330 break; |
1331 } | 1331 } |
1332 | 1332 |
1333 // Not a MUC message, so this is a regular buddy... | 1333 // Not a MUC message, so this is a regular buddy... |
1334 m = roster_getstatusmsg(r, rname); | 1334 m = roster_getstatusmsg(r, rname); |
1335 if ((ust != roster_getstatus(r, rname)) || (s && (!m || strcmp(s, m)))) | 1335 if ((ust != roster_getstatus(r, rname)) || |
1336 (!s && m && m[0]) || (s && (!m || strcmp(s, m)))) | |
1336 hk_statuschange(r, rname, bpprio, 0, ust, s); | 1337 hk_statuschange(r, rname, bpprio, 0, ust, s); |
1337 g_free(r); | 1338 g_free(r); |
1338 if (s) g_free(s); | 1339 if (s) g_free(s); |
1339 break; | 1340 break; |
1340 | 1341 |