diff mcabber/src/commands.c @ 1311:0dda8238af21

Implement "/roster display"
author Mikael Berthe <mikael@lilotux.net>
date Thu, 13 Sep 2007 20:05:21 +0200
parents 9bc68473f8a3
children f4830fada2af
line wrap: on
line diff
--- a/mcabber/src/commands.c	Mon Sep 10 21:56:50 2007 +0200
+++ b/mcabber/src/commands.c	Thu Sep 13 20:05:21 2007 +0200
@@ -177,6 +177,7 @@
   compl_add_category_word(COMPL_ROSTER, "hide");
   compl_add_category_word(COMPL_ROSTER, "show");
   compl_add_category_word(COMPL_ROSTER, "toggle");
+  compl_add_category_word(COMPL_ROSTER, "display");
   compl_add_category_word(COMPL_ROSTER, "hide_offline");
   compl_add_category_word(COMPL_ROSTER, "show_offline");
   compl_add_category_word(COMPL_ROSTER, "toggle_offline");
@@ -652,6 +653,8 @@
     buddylist_set_hide_offline_buddies(-1);
     buddylist_build();
     update_roster = TRUE;
+  } else if (!strcasecmp(subcmd, "display")) {
+    scr_RosterDisplay(arg);
   } else if (!strcasecmp(subcmd, "item_lock")) {
     roster_buddylock(arg, TRUE);
   } else if (!strcasecmp(subcmd, "item_unlock")) {