enabled joining channels with password
This commit is contained in:
parent
ab89c0c4f5
commit
fcef69cf32
3
ii.c
3
ii.c
@ -237,7 +237,8 @@ static void proc_channels_input(Channel *c, char *buf) {
|
|||||||
p = strchr(&buf[3], ' ');
|
p = strchr(&buf[3], ' ');
|
||||||
if(p) *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]);
|
if(p) snprintf(message, PIPE_BUF, "JOIN %s %s\r\n", &buf[3], p + 1);
|
||||||
|
else snprintf(message, PIPE_BUF, "JOIN %s\r\n", &buf[3]);
|
||||||
add_channel(&buf[3]);
|
add_channel(&buf[3]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user