--- 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()
--- a/mcabber/mcabber/compl.h Wed Nov 10 14:08:24 2010 +0100
+++ b/mcabber/mcabber/compl.h Wed Nov 10 14:08:49 2010 +0100
@@ -26,6 +26,7 @@
#define COMPL_COLOR 19
#define COMPL_OTR 20
#define COMPL_OTRPOLICY 21
+#define COMPL_MODULE 22
#ifdef MODULES_ENABLE
void compl_init_system(void);