comparison mcabber/src/commands.c @ 127:0f7ec11efd06

[/trunk] Changeset 140 by mikael * Add /group and /help in completion system (but matching functions are not implemented yet).
author mikael
date Thu, 28 Apr 2005 06:58:47 +0000
parents 6d2122c003c4
children 81ccb1091dd8
comparison
equal deleted inserted replaced
126:d3ee9abe9ca6 127:0f7ec11efd06
61 void cmd_init(void) 61 void cmd_init(void)
62 { 62 {
63 cmd_add("add", "Add a jabber user", COMPL_JID, 0, &do_add); 63 cmd_add("add", "Add a jabber user", COMPL_JID, 0, &do_add);
64 cmd_add("clear", "Clear the dialog window", 0, 0, &do_clear); 64 cmd_add("clear", "Clear the dialog window", 0, 0, &do_clear);
65 //cmd_add("del"); 65 //cmd_add("del");
66 //cmd_add("group"); 66 cmd_add("group", "Change group display settings", COMPL_GROUP, 0, NULL);
67 //cmd_add("help"); 67 cmd_add("help", "Display some help", COMPL_CMD, 0, NULL);
68 //cmd_add("info"); 68 //cmd_add("info");
69 //cmd_add("move"); 69 //cmd_add("move");
70 //cmd_add("nick"); 70 //cmd_add("nick");
71 cmd_add("quit", "Exit the software", 0, 0, NULL); 71 cmd_add("quit", "Exit the software", 0, 0, NULL);
72 //cmd_add("rename"); 72 //cmd_add("rename");
90 // Roster category 90 // Roster category
91 compl_add_category_word(COMPL_ROSTER, "bottom"); 91 compl_add_category_word(COMPL_ROSTER, "bottom");
92 compl_add_category_word(COMPL_ROSTER, "hide_offline"); 92 compl_add_category_word(COMPL_ROSTER, "hide_offline");
93 compl_add_category_word(COMPL_ROSTER, "show_offline"); 93 compl_add_category_word(COMPL_ROSTER, "show_offline");
94 compl_add_category_word(COMPL_ROSTER, "top"); 94 compl_add_category_word(COMPL_ROSTER, "top");
95
96 // Group category
97 compl_add_category_word(COMPL_GROUP, "expand");
98 compl_add_category_word(COMPL_GROUP, "shrink");
95 } 99 }
96 100
97 // cmd_get 101 // cmd_get
98 // Finds command in the command list structure. 102 // Finds command in the command list structure.
99 // Returns a pointer to the cmd entry, or NULL if command not found. 103 // Returns a pointer to the cmd entry, or NULL if command not found.