summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-07 19:27:47 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-07 19:27:47 +0000
commit7b70a3d91a006c0182d9aae89f405a778dbfc643 (patch)
tree8b97bd20e1d6473fac516492830435ee1b1fcbff /src/core
parent0141801e2d194be6ccaad743cca573837ef536d7 (diff)
downloadirssi-7b70a3d91a006c0182d9aae89f405a778dbfc643.zip
'-' 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
Diffstat (limited to 'src/core')
-rw-r--r--src/core/commands.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/commands.c b/src/core/commands.c
index 3cb0897f..a96b5fa0 100644
--- a/src/core/commands.c
+++ b/src/core/commands.c
@@ -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)++;
}