comparison 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
comparison
equal deleted inserted replaced
1423:757ebe4df0b9 1424:bb1cc8902d0e
206 compl_add_category_word(COMPL_BUFFER, "close"); 206 compl_add_category_word(COMPL_BUFFER, "close");
207 compl_add_category_word(COMPL_BUFFER, "close_all"); 207 compl_add_category_word(COMPL_BUFFER, "close_all");
208 compl_add_category_word(COMPL_BUFFER, "scroll_lock"); 208 compl_add_category_word(COMPL_BUFFER, "scroll_lock");
209 compl_add_category_word(COMPL_BUFFER, "scroll_unlock"); 209 compl_add_category_word(COMPL_BUFFER, "scroll_unlock");
210 compl_add_category_word(COMPL_BUFFER, "scroll_toggle"); 210 compl_add_category_word(COMPL_BUFFER, "scroll_toggle");
211 compl_add_category_word(COMPL_BUFFER, "list");
211 212
212 // Group category 213 // Group category
213 compl_add_category_word(COMPL_GROUP, "fold"); 214 compl_add_category_word(COMPL_GROUP, "fold");
214 compl_add_category_word(COMPL_GROUP, "unfold"); 215 compl_add_category_word(COMPL_GROUP, "unfold");
215 compl_add_category_word(COMPL_GROUP, "toggle"); 216 compl_add_category_word(COMPL_GROUP, "toggle");
1479 buffer_search(1, arg); 1480 buffer_search(1, arg);
1480 } else if (!strcasecmp(subcmd, "date")) { 1481 } else if (!strcasecmp(subcmd, "date")) {
1481 buffer_date(arg); 1482 buffer_date(arg);
1482 } else if (*subcmd == '%') { 1483 } else if (*subcmd == '%') {
1483 buffer_percent(subcmd+1, arg); 1484 buffer_percent(subcmd+1, arg);
1484 #ifdef ENABLE_DEBUG
1485 } else if (!strcasecmp(subcmd, "list")) { 1485 } else if (!strcasecmp(subcmd, "list")) {
1486 scr_BufferList(); 1486 scr_BufferList();
1487 #endif
1488 } else { 1487 } else {
1489 scr_LogPrint(LPRINT_NORMAL, "Unrecognized parameter!"); 1488 scr_LogPrint(LPRINT_NORMAL, "Unrecognized parameter!");
1490 } 1489 }
1491 1490
1492 free_arg_lst(paramlst); 1491 free_arg_lst(paramlst);