mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02:00
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:
parent
9ae4779c87
commit
1826812c9d
4 changed files with 11 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue