Moved /LASTLOG handling to lastlog.c. Added options -file <filename>

for writing lastlog to file, -window <ref#|name> for specifying which
window's lastlog to print (output is always to active window) and
-clear option to remove all lastlog lines from window.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1255 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-02-19 06:23:04 +00:00 committed by cras
commit 6b4a838813
8 changed files with 384 additions and 250 deletions

View file

@ -789,7 +789,8 @@ static void signal_window_changed(WINDOW_REC *window)
screen_refresh_thaw();
}
GList *gui_window_find_text(WINDOW_REC *window, gchar *text, GList *startline, int regexp, int fullword)
GList *gui_window_find_text(WINDOW_REC *window, const char *text,
GList *startline, int regexp, int fullword)
{
#ifdef HAVE_REGEX_H
regex_t preg;
@ -1130,7 +1131,7 @@ void gui_window_reformat_line(WINDOW_REC *window, LINE_REC *line)
raw->str[1] == (char)LINE_CMD_FORMAT_CONT) {
/* multiline format, format explained in one the
following lines. remove this line. */
gui_window_line_remove(window, line);
gui_window_line_remove(window, line, FALSE);
} else if (str != NULL) {
/* FIXME: ugly ugly .. and this can't handle
non-formatted lines.. */