Mercurial > ~mikael > mcabber > hg
diff 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 |
line wrap: on
line diff
--- a/mcabber/src/commands.c Sun Apr 20 14:30:25 2008 +0200 +++ b/mcabber/src/commands.c Sun Apr 20 16:06:37 2008 +0200 @@ -213,6 +213,7 @@ compl_add_category_word(COMPL_BUFFER, "scroll_unlock"); compl_add_category_word(COMPL_BUFFER, "scroll_toggle"); compl_add_category_word(COMPL_BUFFER, "list"); + compl_add_category_word(COMPL_BUFFER, "save"); // Group category compl_add_category_word(COMPL_GROUP, "fold"); @@ -1630,6 +1631,8 @@ buffer_date(arg); } else if (*subcmd == '%') { buffer_percent(subcmd+1, arg); + } else if (!strcasecmp(subcmd, "save")) { + scr_BufferDump(arg); } else if (!strcasecmp(subcmd, "list")) { scr_BufferList(); } else {