Mercurial > ~mikael > mcabber > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
973:e693cbe33802 | 974:36f7753dfb59 |
---|---|
793 // - group isn't hidden (shrunk) | 793 // - group isn't hidden (shrunk) |
794 // - this is the current_buddy | 794 // - this is the current_buddy |
795 if (!hide_offline_buddies || roster_usrelt == roster_current_buddy || | 795 if (!hide_offline_buddies || roster_usrelt == roster_current_buddy || |
796 (buddy_getstatus((gpointer)roster_usrelt, NULL) != offline) || | 796 (buddy_getstatus((gpointer)roster_usrelt, NULL) != offline) || |
797 (buddy_getflags((gpointer)roster_usrelt) & | 797 (buddy_getflags((gpointer)roster_usrelt) & |
798 (ROSTER_FLAG_LOCK | ROSTER_FLAG_MSG))) { | 798 (ROSTER_FLAG_LOCK | ROSTER_FLAG_USRLOCK | ROSTER_FLAG_MSG))) { |
799 // This user should be added. Maybe the group hasn't been added yet? | 799 // This user should be added. Maybe the group hasn't been added yet? |
800 if (pending_group && | 800 if (pending_group && |
801 (hide_offline_buddies || roster_usrelt == roster_current_buddy)) { | 801 (hide_offline_buddies || roster_usrelt == roster_current_buddy)) { |
802 // It hasn't been done yet | 802 // It hasn't been done yet |
803 buddylist = g_list_append(buddylist, roster_elt); | 803 buddylist = g_list_append(buddylist, roster_elt); |