ii

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

beb466138132439f538008a8bbd8ad43355e687d

Author: Nico Golde on 01/24/2011

Committer: Nico Golde on 01/24/2011

document implication of autojoin patch and now tag 1.5 for real :)

Stats

CHANGES | 2 ++
ii.c    | 6 +++---
2 files changed, 5 insertions(+), 3 deletions(-)

Patch

diff --git a/CHANGES b/CHANGES
index 55a1185..a6acf04 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,8 @@
       as raw irc (only worked for raw commands in capital lettersin the past) => Thanks samurai!
     - create in FIFO on receiving a privmsg directly instead of requiring a new
       /j command first => Thanks Evan Gates
+      this also implies that in FIFOs aren't deleted on channel leaves any longer because
+      this itself creates a channel event again which in turn would recreate the file
     - minor changes
 
 1.4 (2008-08-09):
diff --git a/ii.c b/ii.c
index c467728..6cb0a03 100644
--- a/ii.c
+++ b/ii.c
@@ -226,7 +226,7 @@ static void proc_channels_privmsg(char *channel, char *buf) {
 }
 
 static void proc_channels_input(Channel *c, char *buf) {
-	static char infile[256];
+	/* static char infile[256]; */
 	char *p = NULL;
 
 	if(buf[0] != '/' && buf[0] != 0) {
@@ -280,8 +280,8 @@ static void proc_channels_input(Channel *c, char *buf) {
 						"PART %s :ii - 500 SLOC are too much\r\n", c->name);
 			write(irc, message, strlen(message));
 			close(c->fd);
-			create_filepath(infile, sizeof(infile), c->name, "in");
-			unlink(infile);
+			/*create_filepath(infile, sizeof(infile), c->name, "in");
+			unlink(infile); */
 			rm_channel(c);
 			return;
 			break;