diff mcabber/src/commands.c @ 866:b30df2ab457f

Add "/buffer purge"
author Mikael Berthe <mikael@lilotux.net>
date Wed, 24 May 2006 22:29:05 +0200
parents cee8d6be04e1
children 7f056c566569
line wrap: on
line diff
--- a/mcabber/src/commands.c	Wed May 24 21:52:46 2006 +0200
+++ b/mcabber/src/commands.c	Wed May 24 22:29:05 2006 +0200
@@ -155,6 +155,7 @@
   compl_add_category_word(COMPL_BUFFER, "search_forward");
   compl_add_category_word(COMPL_BUFFER, "date");
   compl_add_category_word(COMPL_BUFFER, "%");
+  compl_add_category_word(COMPL_BUFFER, "purge");
 
   // Group category
   compl_add_category_word(COMPL_GROUP, "fold");
@@ -1012,6 +1013,8 @@
     scr_BufferTopBottom(1);
   } else if (!strcasecmp(subcmd, "clear")) {
     scr_BufferClear();
+  } else if (!strcasecmp(subcmd, "purge")) {
+    scr_BufferPurge();
   } else if (!strcasecmp(subcmd, "up")) {
     buffer_updown(-1, arg);
   } else if (!strcasecmp(subcmd, "down")) {