129 |
|
|
130 |
|
if (MyClient(source_p)) |
131 |
|
{ |
132 |
< |
/* don't allow a knock if the user is banned, or the channel is secret */ |
133 |
< |
if ((chptr->mode.mode & MODE_PRIVATE) || is_banned(chptr, source_p)) |
132 |
> |
/* |
133 |
> |
* Don't allow a knock if the user is banned, or the channel is private |
134 |
> |
*/ |
135 |
> |
if (PrivateChannel(chptr) || is_banned(chptr, source_p)) |
136 |
|
{ |
137 |
|
sendto_one(source_p, form_str(ERR_CANNOTSENDTOCHAN), |
138 |
|
me.name, source_p->name, chptr->chname); |
176 |
|
source_p->host); |
177 |
|
|
178 |
|
sendto_server(client_p, chptr, CAP_KNOCK|CAP_TS6, NOCAPS, |
179 |
< |
":%s KNOCK %s %s", ID(source_p), chptr->chname); |
179 |
> |
":%s KNOCK %s", ID(source_p), chptr->chname); |
180 |
|
sendto_server(client_p, chptr, CAP_KNOCK, CAP_TS6, |
181 |
< |
":%s KNOCK %s %s", source_p->name, chptr->chname); |
181 |
> |
":%s KNOCK %s", source_p->name, chptr->chname); |
182 |
|
} |