comparison mcabber/src/commands.c @ 1485:0121b6f3047c

New command: /buffer save
author Mikael Berthe <mikael@lilotux.net>
date Sun, 20 Apr 2008 16:06:37 +0200
parents 7b36b91a4388
children c74cfe7fd848
comparison
equal deleted inserted replaced
1484:7b36b91a4388 1485:0121b6f3047c
211 compl_add_category_word(COMPL_BUFFER, "close_all"); 211 compl_add_category_word(COMPL_BUFFER, "close_all");
212 compl_add_category_word(COMPL_BUFFER, "scroll_lock"); 212 compl_add_category_word(COMPL_BUFFER, "scroll_lock");
213 compl_add_category_word(COMPL_BUFFER, "scroll_unlock"); 213 compl_add_category_word(COMPL_BUFFER, "scroll_unlock");
214 compl_add_category_word(COMPL_BUFFER, "scroll_toggle"); 214 compl_add_category_word(COMPL_BUFFER, "scroll_toggle");
215 compl_add_category_word(COMPL_BUFFER, "list"); 215 compl_add_category_word(COMPL_BUFFER, "list");
216 compl_add_category_word(COMPL_BUFFER, "save");
216 217
217 // Group category 218 // Group category
218 compl_add_category_word(COMPL_GROUP, "fold"); 219 compl_add_category_word(COMPL_GROUP, "fold");
219 compl_add_category_word(COMPL_GROUP, "unfold"); 220 compl_add_category_word(COMPL_GROUP, "unfold");
220 compl_add_category_word(COMPL_GROUP, "toggle"); 221 compl_add_category_word(COMPL_GROUP, "toggle");
1628 buffer_search(1, arg); 1629 buffer_search(1, arg);
1629 } else if (!strcasecmp(subcmd, "date")) { 1630 } else if (!strcasecmp(subcmd, "date")) {
1630 buffer_date(arg); 1631 buffer_date(arg);
1631 } else if (*subcmd == '%') { 1632 } else if (*subcmd == '%') {
1632 buffer_percent(subcmd+1, arg); 1633 buffer_percent(subcmd+1, arg);
1634 } else if (!strcasecmp(subcmd, "save")) {
1635 scr_BufferDump(arg);
1633 } else if (!strcasecmp(subcmd, "list")) { 1636 } else if (!strcasecmp(subcmd, "list")) {
1634 scr_BufferList(); 1637 scr_BufferList();
1635 } else { 1638 } else {
1636 scr_LogPrint(LPRINT_NORMAL, "Unrecognized parameter!"); 1639 scr_LogPrint(LPRINT_NORMAL, "Unrecognized parameter!");
1637 } 1640 }