diff mcabber/src/roster.c @ 974:36f7753dfb59

Add /roster item_{lock,unlock} These commands allow us to lock a contact so it stays visible in the roster when hide_offline_buddies is set.
author Mikael Berthe <mikael@lilotux.net>
date Sat, 30 Sep 2006 22:42:32 +0200
parents 527d6f234924
children 5b01de4ac5e1
line wrap: on
line diff
--- a/mcabber/src/roster.c	Sat Sep 30 19:13:20 2006 +0200
+++ b/mcabber/src/roster.c	Sat Sep 30 22:42:32 2006 +0200
@@ -795,7 +795,7 @@
       if (!hide_offline_buddies || roster_usrelt == roster_current_buddy ||
           (buddy_getstatus((gpointer)roster_usrelt, NULL) != offline) ||
           (buddy_getflags((gpointer)roster_usrelt) &
-               (ROSTER_FLAG_LOCK | ROSTER_FLAG_MSG))) {
+               (ROSTER_FLAG_LOCK | ROSTER_FLAG_USRLOCK | ROSTER_FLAG_MSG))) {
         // This user should be added.  Maybe the group hasn't been added yet?
         if (pending_group &&
             (hide_offline_buddies || roster_usrelt == roster_current_buddy)) {