diff options
author | Timo Sirainen <cras@irssi.org> | 2003-10-11 00:19:34 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2003-10-11 00:19:34 +0000 |
commit | 1826812c9d4a980aeb20e4d89fa352616fb36c27 (patch) | |
tree | ebdfb1c4a2d2484bc232d96b889b4151277cc28d /src/core/commands.c | |
parent | 9ae4779c876360f574498fa567319301faa76fbf (diff) | |
download | irssi-1826812c9d4a980aeb20e4d89fa352616fb36c27.zip |
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
Diffstat (limited to 'src/core/commands.c')
-rw-r--r-- | src/core/commands.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/commands.c b/src/core/commands.c index bfe3373c..c2882925 100644 --- a/src/core/commands.c +++ b/src/core/commands.c @@ -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; |