Add cmd_autocomplete.c

This commit is contained in:
James Booth
2016-05-20 00:19:03 +01:00
parent 458f9edbb0
commit eaf2901b01
10 changed files with 3010 additions and 2877 deletions

View File

@@ -36,6 +36,7 @@
#include <stdlib.h>
#include "command/command.h"
#include "command/cmd_autocomplete.h"
#include "plugins/callbacks.h"
#include "plugins/plugins.h"
#include "tools/autocomplete.h"
@@ -72,9 +73,8 @@ void
callbacks_add_command(PluginCommand *command)
{
p_commands = g_slist_append(p_commands, command);
cmd_autocomplete_add(command->command_name);
cmd_help_autocomplete_add(&command->command_name[1]);
cmd_ac_add(command->command_name);
cmd_ac_add_help(&command->command_name[1]);
}
void