633 |
|
is_banned(const struct Channel *chptr, const struct Client *who) |
634 |
|
{ |
635 |
|
if (find_bmask(who, &chptr->banlist)) |
636 |
< |
if (!ConfigChannel.use_except || !find_bmask(who, &chptr->exceptlist)) |
636 |
> |
if (!find_bmask(who, &chptr->exceptlist)) |
637 |
|
return 1; |
638 |
|
|
639 |
|
return 0; |
665 |
|
|
666 |
|
if (chptr->mode.mode & MODE_INVITEONLY) |
667 |
|
if (!dlinkFind(&source_p->localClient->invited, chptr)) |
668 |
< |
if (!ConfigChannel.use_invex || !find_bmask(source_p, &chptr->invexlist)) |
668 |
> |
if (!find_bmask(source_p, &chptr->invexlist)) |
669 |
|
return ERR_INVITEONLYCHAN; |
670 |
|
|
671 |
|
if (chptr->mode.key[0] && (!key || strcmp(chptr->mode.key, key))) |