1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05: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,8 +223,8 @@ static void cmd_lastlog(const char *data)
"lastlog", &optlist, &text, &countstr, &start)) "lastlog", &optlist, &text, &countstr, &start))
return; return;
if (*start == '\0' && is_numeric(text, 0)) { if (*start == '\0' && is_numeric(text, 0) &&
if (is_numeric(countstr, 0)) (*countstr == '\0' || is_numeric(countstr, 0)) {
start = countstr; start = countstr;
countstr = text; countstr = text;
text = ""; text = "";