summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-05-30 14:41:01 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-05-30 14:41:01 +0000
commit0f62f9c21c5260efc1581edec0c4769b4341b99f (patch)
tree9de258299f2dd626c727086648981883803c311f /src/fe-text
parent7eae5d37df3a17317dfc9d7c2f7ef9a124d37450 (diff)
downloadirssi-0f62f9c21c5260efc1581edec0c4769b4341b99f.zip
/LAST <number> <non-number> (eg. /last 5 -) should treat the number as text,
not as count parameter. This way you don't have to type "/last 5 - -" if you want to search for string "5" from lastlog. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1521 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/lastlog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-text/lastlog.c b/src/fe-text/lastlog.c
index 75e68da3..3e508f10 100644
--- a/src/fe-text/lastlog.c
+++ b/src/fe-text/lastlog.c
@@ -223,9 +223,9 @@ static void cmd_lastlog(const char *data)
"lastlog", &optlist, &text, &countstr, &start))
return;
- if (*start == '\0' && is_numeric(text, 0)) {
- if (is_numeric(countstr, 0))
- start = countstr;
+ if (*start == '\0' && is_numeric(text, 0) &&
+ (*countstr == '\0' || is_numeric(countstr, 0)) {
+ start = countstr;
countstr = text;
text = "";
}