Mercurial > hg
changeset 750:938a8791658c
Add partial completion for the "/event" command
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 13 Mar 2006 19:25:55 +0100 |
parents | 6c633adaae10 |
children | 4a7271e69694 |
files | mcabber/src/commands.c mcabber/src/compl.h |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/commands.c Mon Mar 13 19:20:03 2006 +0100 +++ b/mcabber/src/commands.c Mon Mar 13 19:25:55 2006 +0100 @@ -94,7 +94,7 @@ cmd_add("connect", "Connect to the server", 0, 0, &do_connect); cmd_add("del", "Delete the current buddy", 0, 0, &do_del); cmd_add("disconnect", "Disconnect from server", 0, 0, &do_disconnect); - cmd_add("event", "Process an event", 0, 0, &do_event); + cmd_add("event", "Process an event", 0, COMPL_EVENTS, &do_event); cmd_add("group", "Change group display settings", COMPL_GROUP, 0, &do_group); //cmd_add("help", "Display some help", COMPL_CMD, 0, NULL); cmd_add("info", "Show basic info on current buddy", 0, 0, &do_info); @@ -193,6 +193,10 @@ // Request (query) category compl_add_category_word(COMPL_REQUEST, "time"); compl_add_category_word(COMPL_REQUEST, "version"); + + // Events category + compl_add_category_word(COMPL_EVENTS, "accept"); + compl_add_category_word(COMPL_EVENTS, "reject"); } // expandalias(line)
--- a/mcabber/src/compl.h Mon Mar 13 19:20:03 2006 +0100 +++ b/mcabber/src/compl.h Mon Mar 13 19:25:55 2006 +0100 @@ -18,6 +18,7 @@ #define COMPL_RESOURCE (1<<13) #define COMPL_AUTH (1<<14) #define COMPL_REQUEST (1<<15) +#define COMPL_EVENTS (1<<16) void compl_add_category_word(guint, const char *command); void compl_del_category_word(guint categ, const char *word);