ii

git clone https://orangeshoelaces.net/git/ii.git

566fa01e471cbbe318640150b44fa59bfe50f9a8

Author: Nico Golde on 01/24/2011

Committer: Nico Golde on 01/24/2011

create in FIFO on receiving a PRIVMSG

Stats

ii.c | 1 +
1 file changed, 1 insertion(+)

Patch

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);