From 0f62f9c21c5260efc1581edec0c4769b4341b99f Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 30 May 2001 14:41:01 +0000 Subject: [PATCH] /LAST (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 --- src/fe-text/lastlog.c | 6 +++--- 1 file 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 = ""; }