diff mcabber/src/commands.c @ 290:f63839a4cb35

Add /roster toggle_offline
author Mikael Berthe <mikael@lilotux.net>
date Fri, 08 Jul 2005 22:32:50 +0100
parents 1eea0fa0955e
children 35cda94e570d 12f919be3da5
line wrap: on
line diff
--- 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")) {