Changed some checks i_isspace() -> ' ' so that TAB isn't included in checks.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3130 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2003-10-11 00:19:34 +00:00 committed by cras
commit 1826812c9d
4 changed files with 11 additions and 11 deletions

View file

@ -574,17 +574,17 @@ static int get_cmd_options(char **data, int ignore_unknown,
}
(*data)++;
if (**data == '-' && i_isspace((*data)[1])) {
if (**data == '-' && (*data)[1] == ' ') {
/* -- option means end of options even
if next word starts with - */
(*data)++;
while (i_isspace(**data)) (*data)++;
while (**data == ' ') (*data)++;
break;
}
if (**data == '\0')
option = "-";
else if (!i_isspace(**data))
else if (**data != ' ')
option = cmd_get_param(data);
else {
option = "-";
@ -629,7 +629,7 @@ static int get_cmd_options(char **data, int ignore_unknown,
*optlist[pos] == '!')
option = NULL;
while (i_isspace(**data)) (*data)++;
while (**data == ' ') (*data)++;
continue;
}
@ -647,7 +647,7 @@ static int get_cmd_options(char **data, int ignore_unknown,
}
option = NULL;
while (i_isspace(**data)) (*data)++;
while (**data == ' ') (*data)++;
}
return 0;