mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 22:53:28 +01:00
small fixes
This commit is contained in:
parent
dee263704c
commit
6595e2bce5
@ -372,10 +372,10 @@ void execute(WINDOW *window, ToxWindow *prompt, Tox *m, char *u_cmd)
|
|||||||
while (u_cmd[i] != '\0' && num_args < MAX_NUM_ARGS) {
|
while (u_cmd[i] != '\0' && num_args < MAX_NUM_ARGS) {
|
||||||
start = &u_cmd[i];
|
start = &u_cmd[i];
|
||||||
|
|
||||||
if (u_cmd[i] == '\"') {
|
if (*start == '\"') {
|
||||||
while (u_cmd[++i] != '\"') {
|
while (u_cmd[++i] != '\"') {
|
||||||
if (u_cmd[i] == '\0') {
|
if (u_cmd[i] == '\0') {
|
||||||
wprintw(window, "Invalid command. Did you forget a closing \"?\n");
|
wprintw(window, "Invalid argument. Did you forget a closing \"?\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user