comparison mcabber/src/commands.c @ 1221:0dd5df7eb007

Fix wrong command completion order (reported by Lego12239)
author Mikael Berthe <mikael@lilotux.net>
date Thu, 10 May 2007 13:22:31 +0200
parents 2de8f8ba1f34
children 2521efbf3b72
comparison
equal deleted inserted replaced
1220:44b699a61224 1221:0dd5df7eb007
111 cmd_add("authorization", "Manage subscription authorizations", 111 cmd_add("authorization", "Manage subscription authorizations",
112 COMPL_AUTH, COMPL_JID, &do_authorization); 112 COMPL_AUTH, COMPL_JID, &do_authorization);
113 cmd_add("bind", "Add an key binding", 0, 0, &do_bind); 113 cmd_add("bind", "Add an key binding", 0, 0, &do_bind);
114 cmd_add("buffer", "Manipulate current buddy's buffer (chat window)", 114 cmd_add("buffer", "Manipulate current buddy's buffer (chat window)",
115 COMPL_BUFFER, 0, &do_buffer); 115 COMPL_BUFFER, 0, &do_buffer);
116 cmd_add("chat_disable", "Disable chat mode", 0, 0, &do_chat_disable);
116 cmd_add("clear", "Clear the dialog window", 0, 0, &do_clear); 117 cmd_add("clear", "Clear the dialog window", 0, 0, &do_clear);
117 cmd_add("connect", "Connect to the server", 0, 0, &do_connect); 118 cmd_add("connect", "Connect to the server", 0, 0, &do_connect);
118 cmd_add("del", "Delete the current buddy", 0, 0, &do_del); 119 cmd_add("del", "Delete the current buddy", 0, 0, &do_del);
119 cmd_add("disconnect", "Disconnect from server", 0, 0, &do_disconnect); 120 cmd_add("disconnect", "Disconnect from server", 0, 0, &do_disconnect);
120 cmd_add("event", "Process an event", COMPL_EVENTSID, COMPL_EVENTS, &do_event); 121 cmd_add("event", "Process an event", COMPL_EVENTSID, COMPL_EVENTS, &do_event);
121 cmd_add("group", "Change group display settings", COMPL_GROUP, 0, &do_group); 122 cmd_add("group", "Change group display settings", COMPL_GROUP, 0, &do_group);
122 cmd_add("help", "Display some help", COMPL_CMD, 0, &do_help); 123 cmd_add("help", "Display some help", COMPL_CMD, 0, &do_help);
124 cmd_add("iline", "Manipulate input buffer", 0, 0, &do_iline);
123 cmd_add("info", "Show basic info on current buddy", 0, 0, &do_info); 125 cmd_add("info", "Show basic info on current buddy", 0, 0, &do_info);
124 cmd_add("move", "Move the current buddy to another group", COMPL_GROUPNAME, 126 cmd_add("move", "Move the current buddy to another group", COMPL_GROUPNAME,
125 0, &do_move); 127 0, &do_move);
126 cmd_add("msay", "Send a multi-lines message to the selected buddy", 128 cmd_add("msay", "Send a multi-lines message to the selected buddy",
127 COMPL_MULTILINE, 0, &do_msay); 129 COMPL_MULTILINE, 0, &do_msay);
135 cmd_add("roster", "Manipulate the roster/buddylist", COMPL_ROSTER, 0, 137 cmd_add("roster", "Manipulate the roster/buddylist", COMPL_ROSTER, 0,
136 &do_roster); 138 &do_roster);
137 cmd_add("say", "Say something to the selected buddy", 0, 0, &do_say); 139 cmd_add("say", "Say something to the selected buddy", 0, 0, &do_say);
138 cmd_add("say_to", "Say something to a specific buddy", COMPL_JID, 0, 140 cmd_add("say_to", "Say something to a specific buddy", COMPL_JID, 0,
139 &do_say_to); 141 &do_say_to);
142 cmd_add("screen_refresh", "Redraw mcabber screen", 0, 0, &do_screen_refresh);
140 //cmd_add("search"); 143 //cmd_add("search");
141 cmd_add("set", "Set/query an option value", 0, 0, &do_set); 144 cmd_add("set", "Set/query an option value", 0, 0, &do_set);
142 cmd_add("source", "Read a configuration file", 0, 0, &do_source); 145 cmd_add("source", "Read a configuration file", 0, 0, &do_source);
143 cmd_add("status", "Show or set your status", COMPL_STATUS, 0, &do_status); 146 cmd_add("status", "Show or set your status", COMPL_STATUS, 0, &do_status);
144 cmd_add("status_to", "Show or set your status for one recipient", 147 cmd_add("status_to", "Show or set your status for one recipient",
145 COMPL_JID, COMPL_STATUS, &do_status_to); 148 COMPL_JID, COMPL_STATUS, &do_status_to);
146 cmd_add("version", "Show mcabber version", 0, 0, &do_version); 149 cmd_add("version", "Show mcabber version", 0, 0, &do_version);
147 cmd_add("iline", "Manipulate input buffer", 0, 0, &do_iline);
148 cmd_add("screen_refresh", "Redraw mcabber screen", 0, 0, &do_screen_refresh);
149 cmd_add("chat_disable", "Disable chat mode", 0, 0, &do_chat_disable);
150 150
151 // Status category 151 // Status category
152 compl_add_category_word(COMPL_STATUS, "online"); 152 compl_add_category_word(COMPL_STATUS, "online");
153 compl_add_category_word(COMPL_STATUS, "avail"); 153 compl_add_category_word(COMPL_STATUS, "avail");
154 compl_add_category_word(COMPL_STATUS, "invisible"); 154 compl_add_category_word(COMPL_STATUS, "invisible");