Mercurial > hg
diff mcabber/src/commands.c @ 1135:5d7c05932b13
Add command /buffer close
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 03 Feb 2007 20:05:57 +0100 |
parents | b2040a7fb7fc |
children | 8ba4b1e8b42d |
line wrap: on
line diff
--- a/mcabber/src/commands.c Sat Feb 03 18:31:55 2007 +0100 +++ b/mcabber/src/commands.c Sat Feb 03 20:05:57 2007 +0100 @@ -174,6 +174,7 @@ compl_add_category_word(COMPL_BUFFER, "date"); compl_add_category_word(COMPL_BUFFER, "%"); compl_add_category_word(COMPL_BUFFER, "purge"); + compl_add_category_word(COMPL_BUFFER, "close"); compl_add_category_word(COMPL_BUFFER, "scroll_lock"); compl_add_category_word(COMPL_BUFFER, "scroll_unlock"); compl_add_category_word(COMPL_BUFFER, "scroll_toggle"); @@ -1240,8 +1241,10 @@ scr_BufferTopBottom(1); } else if (!strcasecmp(subcmd, "clear")) { scr_BufferClear(); + } else if (!strcasecmp(subcmd, "close")) { + scr_BufferPurge(1); } else if (!strcasecmp(subcmd, "purge")) { - scr_BufferPurge(); + scr_BufferPurge(0); } else if (!strcasecmp(subcmd, "scroll_lock")) { scr_BufferScrollLock(1); } else if (!strcasecmp(subcmd, "scroll_unlock")) {