summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2007-04-07 14:38:53 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2007-04-07 14:38:53 +0000
commita6ecce1d39091f181b0961e54f822ff7959c93c1 (patch)
tree9b110d0bb0ec65fc2e4e95ccb977e041d16c0cba /src
parent00df474df4f92f64403aa24d661d4cd2541bbdd9 (diff)
downloadirssi-a6ecce1d39091f181b0961e54f822ff7959c93c1.zip
Allow logging of lines with no target to matching non autolog logs.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4439 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/core/log.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/log.c b/src/core/log.c
index 4d49402e..409fc2cd 100644
--- a/src/core/log.c
+++ b/src/core/log.c
@@ -299,10 +299,11 @@ void log_file_write(const char *server_tag, const char *item, int level,
if ((level & rec->level) == 0)
continue;
- if (rec->items == NULL)
+ if (item == NULL) {
+ if (rec->temp == 0) log_write_rec(rec, str, level);
+ } else if (rec->items == NULL)
fallbacks = g_slist_append(fallbacks, rec);
- else if (item != NULL &&
- log_item_find(rec, LOG_ITEM_TARGET, item,
+ else if (log_item_find(rec, LOG_ITEM_TARGET, item,
server_tag) != NULL)
log_write_rec(rec, str, level);
}