diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-22 16:02:50 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-22 16:02:50 +0000 |
commit | 360149891c90105401a05ef519488c5d599b7495 (patch) | |
tree | e500010d8262d1c002fe41899c0adaf258edec6c /src | |
parent | edfbd51827de465059d2290140aa053088c4854f (diff) | |
download | irssi-360149891c90105401a05ef519488c5d599b7495.zip |
Autologging: if we're already logging the item somewhere else, make sure
that log file is open.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@503 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/fe-log.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-log.c b/src/fe-common/core/fe-log.c index e0277029..33613b27 100644 --- a/src/fe-common/core/fe-log.c +++ b/src/fe-common/core/fe-log.c @@ -302,7 +302,10 @@ static void autolog_log(void *server, const char *target) char *fname, *dir, *str; log = log_find_item(target); - if (log != NULL) return; + if (log != NULL) { + log_start_logging(log); + return; + } fname = parse_special_string(autolog_path, server, NULL, target, NULL); if (log_find(fname) == NULL) { |