ii

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

44587107ff4d7f229081fd2e7e8ab4fc7a340541

Author: Nico Golde on 01/29/2007

Committer: Nico Golde on 01/29/2007

right fix at the wrong place reverted

Stats

ii.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/ii.c b/ii.c
index d08c43c..c1b51e8 100644
--- a/ii.c
+++ b/ii.c
@@ -245,8 +245,8 @@ static void proc_channels_input(Channel *c, char *buf)
 	}
 	switch (buf[1]) {
 	case 'j':
-		if(!(p = strchr(&buf[3], ' '))) return;
-		*p = 0;
+		p = strchr(&buf[3], ' ');
+		if(p) *p = 0;
 		if((buf[3]=='#')||(buf[3]=='&')||(buf[3]=='+')||(buf[3]=='!')){
 			snprintf(message, PIPE_BUF, "JOIN %s\r\n", &buf[3]);
 			add_channel(&buf[3]);