create in FIFO on receiving a PRIVMSG

This commit is contained in:
Nico Golde 2011-01-24 16:13:04 +01:00
parent 9dfc1526f9
commit 566fa01e47

1
ii.c
View File

@ -211,6 +211,7 @@ static void print_out(char *channel, char *buf) {
if(strstr(buf, server)) channel=""; if(strstr(buf, server)) channel="";
create_filepath(outfile, sizeof(outfile), channel, "out"); create_filepath(outfile, sizeof(outfile), channel, "out");
if(!(out = fopen(outfile, "a"))) return; if(!(out = fopen(outfile, "a"))) return;
if(channel && channel[0]) add_channel(channel);
strftime(buft, sizeof(buft), "%F %R", localtime(&t)); strftime(buft, sizeof(buft), "%F %R", localtime(&t));
fprintf(out, "%s %s\n", buft, buf); fprintf(out, "%s %s\n", buft, buf);