--- 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
--- 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).
</dd>
<dt><b>
-/roster bottom|top|hide_offline|show_offline|unread_first|unread_next
+/roster bottom|top|hide_offline|show_offline|toggle_offline|unread_first|unread_next
</b></dt>
<dt><b>
/roster search bud
@@ -418,6 +418,14 @@
</tr>
<tr valign="top">
<td>
+<b>toggle_offline</b>
+</td>
+<td>
+toggle display of offline buddies
+</td>
+</tr>
+<tr valign="top">
+<td>
<b>search</b> bud
</td>
<td>
@@ -480,7 +488,7 @@
<div id="footer">
<p>
Version 0.6.2<br />
-Last updated 08-Jul-2005 23:04:30 CEST
+Last updated 08-Jul-2005 23:29:01 CEST
</p>
</div>
</div>
--- 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
--- 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")) {