right fix at the wrong place reverted
This commit is contained in:
parent
500e03ff90
commit
44587107ff
4
ii.c
4
ii.c
@ -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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user