diff mcabber/src/commands.c @ 377:00809e3e327e

Add "/roster up" and "/roster down"
author Mikael Berthe <mikael@lilotux.net>
date Tue, 26 Jul 2005 18:18:30 +0100
parents bd5638c21834
children 39c5da51b387 d59e9b8c91d3
line wrap: on
line diff
--- a/mcabber/src/commands.c	Mon Jul 25 22:02:35 2005 +0100
+++ b/mcabber/src/commands.c	Tue Jul 26 18:18:30 2005 +0100
@@ -115,6 +115,8 @@
   // Roster category
   compl_add_category_word(COMPL_ROSTER, "bottom");
   compl_add_category_word(COMPL_ROSTER, "top");
+  compl_add_category_word(COMPL_ROSTER, "up");
+  compl_add_category_word(COMPL_ROSTER, "down");
   compl_add_category_word(COMPL_ROSTER, "hide_offline");
   compl_add_category_word(COMPL_ROSTER, "show_offline");
   compl_add_category_word(COMPL_ROSTER, "toggle_offline");
@@ -366,6 +368,10 @@
     }
     scr_RosterSearch(string);
     update_roster = TRUE;
+  } else if (!strcasecmp(arg, "up")) {
+    scr_RosterUp();
+  } else if (!strcasecmp(arg, "down")) {
+    scr_RosterDown();
   } else
     scr_LogPrint(LPRINT_NORMAL, "Unrecognized parameter!");
 }