command: relax requirements for unquoted words

Allow most printable characters in unquoted words.  The tokenizer
patch introduced very strict requirements for command parameters -
those were undocumented, and we're reverting the strictness now.
This commit is contained in:
Max Kellermann
2009-09-25 00:53:15 +02:00
parent 89ba540e6d
commit 7542ec4f20
3 changed files with 75 additions and 6 deletions

View File

@@ -1959,7 +1959,7 @@ command_process(struct client *client, unsigned num, char *line)
while (argc < (int)G_N_ELEMENTS(argv) &&
(argv[argc] =
tokenizer_next_word_or_string(&line, &error)) != NULL)
tokenizer_next_param(&line, &error)) != NULL)
++argc;
/* some error checks; we have to set current_command because