Buddy status change was not always displayed
authorMikael Berthe <mikael@lilotux.net>
Fri, 25 Nov 2005 23:07:21 +0100
changeset 537 6547fd48fb5e
parent 536 56f641155579
child 538 6310b928d04a
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.
mcabber/src/jabglue.c
--- 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);