git clone https://orangeshoelaces.net/git/ii.git
Author: Nico Golde on 01/29/2007
Committer: Nico Golde on 01/29/2007
right fix at the wrong place reverted
ii.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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]);