return fi->file;
}
-static inline void file_write_line(struct log_custom_data *data, struct network *network, const char *fmt,
++static void file_write_line(struct log_custom_data *data, struct network *network, const char *fmt,
+ const struct line *l, const char *t, gboolean create_file)
+ {
+ FILE *f;
+ char *s;
+
+ f = find_add_channel_file(data, network, l, t, create_file);
+ if (f == NULL) return;
+
+ custom_subst(network, &s, fmt, l, t, FALSE, FALSE);
+
+ fputs(s, f);
+ fputc('\n', f);
+ fflush(f);
+
+ g_free(s);
+ }
+
static void file_write_target(struct log_custom_data *data,
struct network *network, const char *n,
const struct line *l)