diff options
Diffstat (limited to 'src/command/command.c')
-rw-r--r-- | src/command/command.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/command/command.c b/src/command/command.c index 68c2c6dc..2393a734 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -1120,6 +1120,16 @@ cmd_uninit(void) autocomplete_free(aliases_ac); } +gboolean +cmd_exists(char *cmd) +{ + if (commands_ac == NULL) { + return FALSE; + } else { + return autocomplete_contains(commands_ac, cmd); + } +} + void cmd_autocomplete_add(char *value) { |