summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2007-05-10 20:33:02 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2007-05-10 20:33:02 +0000
commita7f2fc353522eecc76447b9ee18e18ed399cb872 (patch)
tree058e5a5f1355f0a76196b354ebb066a348dc074b /src
parent9c2d621cc63582e865ac764f5c7b5b234c8f11d2 (diff)
downloadirssi-a7f2fc353522eecc76447b9ee18e18ed399cb872.zip
Allow logging of lines with no target only to logs with no items or with a
wildcard item. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4491 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/core/log.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/log.c b/src/core/log.c
index 17372c32..cbbe701b 100644
--- a/src/core/log.c
+++ b/src/core/log.c
@@ -299,9 +299,7 @@ void log_file_write(const char *server_tag, const char *item, int level,
if ((level & rec->level) == 0)
continue;
- if (item == NULL) {
- if (rec->temp == 0) log_write_rec(rec, str, level);
- } else if (rec->items == NULL)
+ if (rec->items == NULL)
fallbacks = g_slist_append(fallbacks, rec);
else if (log_item_find(rec, LOG_ITEM_TARGET, item,
server_tag) != NULL)