Mercurial > ~mikael > mcabber > hg
diff mcabber/src/commands.c @ 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 | 53a000411587 |
children | b747f76e57ae |
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)