1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

The "max. count" parameter in /LAST didn't work right.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@384 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-06-27 19:20:23 +00:00 committed by cras
parent 7718294fa0
commit 6757207328

View File

@ -203,11 +203,12 @@ static void cmd_lastlog(const char *data)
list = gui_window_find_text(active_win, text, startline, flags & LASTLOG_FLAG_REGEXP, flags & LASTLOG_FLAG_WORD); list = gui_window_find_text(active_win, text, startline, flags & LASTLOG_FLAG_REGEXP, flags & LASTLOG_FLAG_WORD);
tmp = lastlog_find_startline(list, count, atoi(start), level); tmp = lastlog_find_startline(list, count, atoi(start), level);
for (; tmp != NULL && (count < 0 || count > 0); tmp = tmp->next, count--) { for (; tmp != NULL && (count < 0 || count > 0); tmp = tmp->next) {
LINE_REC *rec = tmp->data; LINE_REC *rec = tmp->data;
if (!lastlog_match(rec, level)) if (!lastlog_match(rec, level))
continue; continue;
count--;
text = gui_window_line2text(rec); text = gui_window_line2text(rec);
if (settings_get_bool("timestamps")) if (settings_get_bool("timestamps"))