# HG changeset patch # User Mikael Berthe # Date 1120858370 -3600 # Node ID f63839a4cb353e8300d25d07810d9885fa58d556 # Parent 72fa522036511f8b2e074ebc75a712277cc6ba22 Add /roster toggle_offline diff -r 72fa52203651 -r f63839a4cb35 mcabber/doc/mcabber.1 --- a/mcabber/doc/mcabber.1 Fri Jul 08 22:10:42 2005 +0100 +++ b/mcabber/doc/mcabber.1 Fri Jul 08 22:32:50 2005 +0100 @@ -170,6 +170,7 @@ \fBtop\fR jump to the top of the roster \fBhide_offline\fR hide offline buddies \fBshow_offline\fR show offline buddies + \fBtoggle_offline\fR toggle display of offline buddies \fBsearch\fR bud search for a buddy with a name or buddy containing "bud" (only in the displayed buddylist) \fBunread_first\fR jump to the first unread message \fBunread_next\fR jump to the next unread message diff -r 72fa52203651 -r f63839a4cb35 mcabber/doc/mcabber.1.html --- a/mcabber/doc/mcabber.1.html Fri Jul 08 22:10:42 2005 +0100 +++ b/mcabber/doc/mcabber.1.html Fri Jul 08 22:32:50 2005 +0100 @@ -376,7 +376,7 @@ the buddies to another group with the /move command).
-/roster bottom|top|hide_offline|show_offline|unread_first|unread_next +/roster bottom|top|hide_offline|show_offline|toggle_offline|unread_first|unread_next
/roster search bud @@ -418,6 +418,14 @@ +toggle_offline + + +toggle display of offline buddies + + + + search bud @@ -480,7 +488,7 @@ diff -r 72fa52203651 -r f63839a4cb35 mcabber/doc/mcabber.1.txt --- a/mcabber/doc/mcabber.1.txt Fri Jul 08 22:10:42 2005 +0100 +++ b/mcabber/doc/mcabber.1.txt Fri Jul 08 22:32:50 2005 +0100 @@ -154,7 +154,7 @@ This command does not work for groups, at the moment (but you can move the buddies to another group with the /move command). -/roster bottom|top|hide_offline|show_offline|unread_first|unread_next:: +/roster bottom|top|hide_offline|show_offline|toggle_offline|unread_first|unread_next:: /roster search bud:: The 'roster' command manipulates the roster/buddylist. Here are the available parameters: @@ -162,6 +162,7 @@ 'top';; jump to the top of the roster 'hide_offline';; hide offline buddies 'show_offline';; show offline buddies + 'toggle_offline';; toggle display of offline buddies 'search' bud;; search for a buddy with a name or buddy containing "bud" (only in the displayed buddylist) 'unread_first';; jump to the first unread message 'unread_next';; jump to the next unread message diff -r 72fa52203651 -r f63839a4cb35 mcabber/src/commands.c --- a/mcabber/src/commands.c Fri Jul 08 22:10:42 2005 +0100 +++ b/mcabber/src/commands.c Fri Jul 08 22:32:50 2005 +0100 @@ -113,6 +113,7 @@ compl_add_category_word(COMPL_ROSTER, "top"); compl_add_category_word(COMPL_ROSTER, "hide_offline"); compl_add_category_word(COMPL_ROSTER, "show_offline"); + compl_add_category_word(COMPL_ROSTER, "toggle_offline"); compl_add_category_word(COMPL_ROSTER, "search"); compl_add_category_word(COMPL_ROSTER, "unread_first"); compl_add_category_word(COMPL_ROSTER, "unread_next"); @@ -334,6 +335,10 @@ buddylist_set_hide_offline_buddies(FALSE); buddylist_build(); update_roster = TRUE; + } else if (!strcasecmp(arg, "toggle_offline")) { + buddylist_set_hide_offline_buddies(-1); + buddylist_build(); + update_roster = TRUE; } else if (!strcasecmp(arg, "unread_first")) { scr_RosterUnreadMessage(0); } else if (!strcasecmp(arg, "unread_next")) {