diff mcabber/src/commands.c @ 1424:bb1cc8902d0e

Allow "/buffer list" when debugging mode is disabled
author Mikael Berthe <mikael@lilotux.net>
date Sun, 17 Feb 2008 21:19:48 +0100
parents 757ebe4df0b9
children 5667048423db
line wrap: on
line diff
--- a/mcabber/src/commands.c	Sun Feb 17 21:15:30 2008 +0100
+++ b/mcabber/src/commands.c	Sun Feb 17 21:19:48 2008 +0100
@@ -208,6 +208,7 @@
   compl_add_category_word(COMPL_BUFFER, "scroll_lock");
   compl_add_category_word(COMPL_BUFFER, "scroll_unlock");
   compl_add_category_word(COMPL_BUFFER, "scroll_toggle");
+  compl_add_category_word(COMPL_BUFFER, "list");
 
   // Group category
   compl_add_category_word(COMPL_GROUP, "fold");
@@ -1481,10 +1482,8 @@
     buffer_date(arg);
   } else if (*subcmd == '%') {
     buffer_percent(subcmd+1, arg);
-#ifdef ENABLE_DEBUG
   } else if (!strcasecmp(subcmd, "list")) {
     scr_BufferList();
-#endif
   } else {
     scr_LogPrint(LPRINT_NORMAL, "Unrecognized parameter!");
   }