Don't allow /alias to overwrite standard command

This commit is contained in:
James Booth
2014-01-25 01:39:12 +00:00
parent 17f40b76ee
commit 4bd06a5d87
7 changed files with 48 additions and 14 deletions

View File

@@ -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)
{