diff mcabber/src/commands.c @ 236:72fd1273f2b7

[/trunk] Changeset 249 by mikael * Update TODO * Add /roster parameters "unread_first" and "unread_next" * Add Ctrl-q as a shortcut for "/roster unread_next" * Update Documentation (ctrl-q + unread_*) * Update ChangeLog
author mikael
date Fri, 10 Jun 2005 19:03:06 +0000
parents 9a6ba4b38e63
children 8e30b2bb380e
line wrap: on
line diff
--- a/mcabber/src/commands.c	Fri Jun 10 18:42:38 2005 +0000
+++ b/mcabber/src/commands.c	Fri Jun 10 19:03:06 2005 +0000
@@ -104,6 +104,8 @@
   compl_add_category_word(COMPL_ROSTER, "hide_offline");
   compl_add_category_word(COMPL_ROSTER, "show_offline");
   compl_add_category_word(COMPL_ROSTER, "top");
+  compl_add_category_word(COMPL_ROSTER, "unread_first");
+  compl_add_category_word(COMPL_ROSTER, "unread_next");
 
   // Roster category
   compl_add_category_word(COMPL_BUFFER, "bottom");
@@ -246,6 +248,10 @@
     buddylist_set_hide_offline_buddies(FALSE);
     buddylist_build();
     update_roster = TRUE;
+  } else if (!strcasecmp(arg, "unread_first")) {
+    scr_RosterUnreadMessage(0);
+  } else if (!strcasecmp(arg, "unread_next")) {
+    scr_RosterUnreadMessage(1);
   } else
     scr_LogPrint("Unrecognized parameter!");
 }