right fix at the wrong place reverted - ii - FIFO and filesystem based IRC client
 (HTM) git clone git://git.codemadness.org/ii
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 44587107ff4d7f229081fd2e7e8ab4fc7a340541
 (DIR) parent 500e03ff90495cafa7428a2afc3765452d8e2b34
 (HTM) Author: Nico Golde <nion@suckless.org>
       Date:   Mon, 29 Jan 2007 13:48:15 +0100
       
       right fix at the wrong place reverted
       Diffstat:
         M ii.c                                |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git 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]);