right fix at the wrong place reverted

This commit is contained in:
Nico Golde 2007-01-29 13:48:15 +01:00
parent 500e03ff90
commit 44587107ff

4
ii.c
View File

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