Mercurial > hg
changeset 1923:924f4552996c
Add a category module to complete the /module subcommands
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Wed, 10 Nov 2010 14:08:49 +0100 |
parents | 4ba68ad737bc |
children | 57c352ed37f9 |
files | mcabber/mcabber/commands.c mcabber/mcabber/compl.c mcabber/mcabber/compl.h |
diffstat | 3 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/mcabber/commands.c Wed Nov 10 14:08:24 2010 +0100 +++ b/mcabber/mcabber/commands.c Wed Nov 10 14:08:49 2010 +0100 @@ -195,7 +195,7 @@ COMPL_JID, COMPL_STATUS, &do_status_to); cmd_add("version", "Show mcabber version", 0, 0, &do_version); #ifdef MODULES_ENABLE - cmd_add("module", "Manipulations with modules", 0, 0, &do_module); + cmd_add("module", "Manipulations with modules", COMPL_MODULE, 0, &do_module); #endif // Status category @@ -330,6 +330,14 @@ compl_add_category_word(COMPL_COLOR, "roster"); compl_add_category_word(COMPL_COLOR, "muc"); compl_add_category_word(COMPL_COLOR, "mucnick"); + +#ifdef MODULES_ENABLE + // Module category + compl_add_category_word(COMPL_MODULE, "info"); + compl_add_category_word(COMPL_MODULE, "list"); + compl_add_category_word(COMPL_MODULE, "load"); + compl_add_category_word(COMPL_MODULE, "unload"); +#endif } // expandalias(line)
--- a/mcabber/mcabber/compl.c Wed Nov 10 14:08:24 2010 +0100 +++ b/mcabber/mcabber/compl.c Wed Nov 10 14:08:49 2010 +0100 @@ -86,6 +86,7 @@ register_builtin_cat(COMPL_COLOR); register_builtin_cat(COMPL_OTR); register_builtin_cat(COMPL_OTRPOLICY); + register_builtin_cat(COMPL_MODULE); } // compl_new_category()