diff mcabber/src/screen.c @ 164:faf534be8ff0

[/trunk] Changeset 176 by mikael * Add roster_free() * Empty roster when disconnecting from the server / going offline * Don't display buddies status when we're offline * Fix a bug when the roster is empty and we try to send a message (commands.c)
author mikael
date Mon, 02 May 2005 20:31:01 +0000
parents ba51d1737086
children a6ac5498d254
line wrap: on
line diff
--- a/mcabber/src/screen.c	Mon May 02 14:18:55 2005 +0000
+++ b/mcabber/src/screen.c	Mon May 02 20:31:01 2005 +0000
@@ -567,6 +567,7 @@
   GList *buddy;
   int i, n;
   int rOffset;
+  enum imstatus currentstatus = jb_getstatus();
 
   // We can reset update_roster
   update_roster = FALSE;
@@ -628,7 +629,7 @@
     }
 
     budstate = buddy_getstatus(BUDDATA(buddy));
-    if (budstate >= 0 && budstate < imstatus_size)
+    if (budstate >= 0 && budstate < imstatus_size && currentstatus != offline)
       status = imstatus2char[budstate];
     if (buddy == current_buddy) {
       wattrset(rosterWnd, COLOR_PAIR(COLOR_BD_DESSEL));