comparison mcabber/src/commands.c @ 103:93dcc4e15d4a

[/trunk] Changeset 117 by mikael * Optimize scr_handle_tab() * Add /roster command completion (with its parameters) * Clean up compl.c (debug stuff) * Update TODO
author mikael
date Thu, 21 Apr 2005 19:38:23 +0000
parents 2b4cc6bc5bf2
children fe7257d251ac
comparison
equal deleted inserted replaced
102:2b4cc6bc5bf2 103:93dcc4e15d4a
60 //cmd_add("move"); 60 //cmd_add("move");
61 //cmd_add("nick"); 61 //cmd_add("nick");
62 cmd_add("quit", "Exit the software", 0, 0, NULL); 62 cmd_add("quit", "Exit the software", 0, 0, NULL);
63 //cmd_add("rename"); 63 //cmd_add("rename");
64 //cmd_add("request_auth"); 64 //cmd_add("request_auth");
65 cmd_add("roster", "Manipulate the roster/buddylist", COMPL_ROSTER, 0, NULL);
65 cmd_add("say", "Say something to the selected buddy", 0, 0, NULL); 66 cmd_add("say", "Say something to the selected buddy", 0, 0, NULL);
66 //cmd_add("search"); 67 //cmd_add("search");
67 //cmd_add("send_auth"); 68 //cmd_add("send_auth");
68 cmd_add("status", "Show or set your status", COMPL_STATUS, 0, NULL); 69 cmd_add("status", "Show or set your status", COMPL_STATUS, 0, NULL);
69 70
74 compl_add_category_word(COMPL_STATUS, "free"); 75 compl_add_category_word(COMPL_STATUS, "free");
75 compl_add_category_word(COMPL_STATUS, "dnd"); 76 compl_add_category_word(COMPL_STATUS, "dnd");
76 compl_add_category_word(COMPL_STATUS, "busy"); 77 compl_add_category_word(COMPL_STATUS, "busy");
77 compl_add_category_word(COMPL_STATUS, "notavail"); 78 compl_add_category_word(COMPL_STATUS, "notavail");
78 compl_add_category_word(COMPL_STATUS, "away"); 79 compl_add_category_word(COMPL_STATUS, "away");
80
81 // Roster category
82 compl_add_category_word(COMPL_ROSTER, "bottom");
83 compl_add_category_word(COMPL_ROSTER, "hide_offline");
84 compl_add_category_word(COMPL_ROSTER, "show_offline");
85 compl_add_category_word(COMPL_ROSTER, "top");
79 } 86 }
80 87
81 // cmd_get 88 // cmd_get
82 // Finds command in the command list structure. 89 // Finds command in the command list structure.
83 // Returns a pointer to the cmd entry, or NULL if command not found. 90 // Returns a pointer to the cmd entry, or NULL if command not found.