ii performs some strange processing around JOIN messages, which means
that they are not handled correctly (they are put in the server buffer
with 'null' channel name).  The following patch fixes that, but I can't
believe the code was in there for no reason, as it seems rather
deliberate.  Could someone shed some light on this?

diff -r d163c8917af7 ii.c
--- a/ii.c	Mon Oct 31 21:35:12 2011 +0100
+++ b/ii.c	Wed Jan 25 13:56:03 2012 +0100
@@ -347,13 +347,7 @@
 	} else if(!strncmp("ERROR", argv[TOK_CMD], 6))
 		snprintf(message, PIPE_BUF, "-!- error %s", argv[TOK_TEXT] ? argv[TOK_TEXT] : "unknown");
 	else if(!strncmp("JOIN", argv[TOK_CMD], 5)) {
-		if(argv[TOK_TEXT] != NULL){
-			p = strchr(argv[TOK_TEXT], ' ');
-			if(p)
-				*p = 0;
-		}
-		argv[TOK_CHAN] = argv[TOK_TEXT];
-		snprintf(message, PIPE_BUF, "-!- %s(%s) has joined %s", argv[TOK_NICKSRV], argv[TOK_USER], argv[TOK_TEXT]);
+		snprintf(message, PIPE_BUF, "-!- %s(%s) has joined %s", argv[TOK_NICKSRV], argv[TOK_USER], argv[TOK_CHAN]);
 	} else if(!strncmp("PART", argv[TOK_CMD], 5)) {
 		snprintf(message, PIPE_BUF, "-!- %s(%s) has left %s", argv[TOK_NICKSRV], argv[TOK_USER], argv[TOK_CHAN]);
 	} else if(!strncmp("MODE", argv[TOK_CMD], 5))

-- 
\  Troels
/\ Henriksen

Reply via email to