mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
'-' option as last parameter didn't work (eg. /LAST -)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2400 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
0141801e2d
commit
7b70a3d91a
@ -566,9 +566,11 @@ static int get_cmd_options(char **data, int ignore_unknown,
|
||||
break;
|
||||
}
|
||||
|
||||
if (!i_isspace(**data)) {
|
||||
if (**data == '\0')
|
||||
option = "-";
|
||||
else if (!i_isspace(**data))
|
||||
option = cmd_get_param(data);
|
||||
} else {
|
||||
else {
|
||||
option = "-";
|
||||
(*data)++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user