1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-15 04:28:09 -04:00

/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
This commit is contained in:
Timo Sirainen 2001-05-30 14:41:01 +00:00 committed by cras
parent 7eae5d37df
commit 0f62f9c21c

View File

@ -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 = "";
}