Small scr_DrawRoster() fix
authorMikael Berthe <mikael@lilotux.net>
Thu, 04 May 2006 10:44:55 +0200
changeset 832 7c210263c661
parent 831 dd865cc57aa2
child 833 63707a595c2e
Small scr_DrawRoster() fix When we know the presence status of a user without being subscribed to their presence updates, we can display it instead of '?'.
mcabber/src/screen.c
--- a/mcabber/src/screen.c	Thu May 04 10:35:45 2006 +0200
+++ b/mcabber/src/screen.c	Thu May 04 10:44:55 2006 +0200
@@ -1058,7 +1058,7 @@
       char sepright = ']';
       if (btype & ROSTER_TYPE_USER) {
         guint subtype = buddy_getsubscription(BUDDATA(buddy));
-        if (!(subtype & sub_to))
+        if (status == '_' && !(subtype & sub_to))
           status = '?';
         if (!(subtype & sub_from)) {
           sepleft  = '{';