mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
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
This commit is contained in:
parent
9c2d621cc6
commit
a7f2fc3535
@ -299,9 +299,7 @@ void log_file_write(const char *server_tag, const char *item, int level,
|
|||||||
if ((level & rec->level) == 0)
|
if ((level & rec->level) == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (item == NULL) {
|
if (rec->items == NULL)
|
||||||
if (rec->temp == 0) log_write_rec(rec, str, level);
|
|
||||||
} else if (rec->items == NULL)
|
|
||||||
fallbacks = g_slist_append(fallbacks, rec);
|
fallbacks = g_slist_append(fallbacks, rec);
|
||||||
else if (log_item_find(rec, LOG_ITEM_TARGET, item,
|
else if (log_item_find(rec, LOG_ITEM_TARGET, item,
|
||||||
server_tag) != NULL)
|
server_tag) != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user