summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Golde <nion@suckless.org>2011-01-24 16:13:04 +0100
committerNico Golde <nion@suckless.org>2011-01-24 16:13:04 +0100
commit566fa01e471cbbe318640150b44fa59bfe50f9a8 (patch)
treeeaf8326fd1d804255d045d871dd07529789a2579
parent9dfc1526f92a033d8f5cb90b2b4a523e91bd621e (diff)
downloadii-566fa01e471cbbe318640150b44fa59bfe50f9a8.zip
ii-566fa01e471cbbe318640150b44fa59bfe50f9a8.tar.gz
ii-566fa01e471cbbe318640150b44fa59bfe50f9a8.tar.bz2
create in FIFO on receiving a PRIVMSG
-rw-r--r--ii.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ii.c b/ii.c
index e7d5528..40021bb 100644
--- a/ii.c
+++ b/ii.c
@@ -211,6 +211,7 @@ static void print_out(char *channel, char *buf) {
if(strstr(buf, server)) channel="";
create_filepath(outfile, sizeof(outfile), channel, "out");
if(!(out = fopen(outfile, "a"))) return;
+ if(channel && channel[0]) add_channel(channel);
strftime(buft, sizeof(buft), "%F %R", localtime(&t));
fprintf(out, "%s %s\n", buft, buf);