421 |
|
* \return string pointer "=" if public, "@" if secret else "*" |
422 |
|
*/ |
423 |
|
static const char * |
424 |
< |
channel_pub_or_secret(struct Channel *chptr) |
424 |
> |
channel_pub_or_secret(const struct Channel *chptr) |
425 |
|
{ |
426 |
|
if (SecretChannel(chptr)) |
427 |
|
return "@"; |
639 |
|
* \return 0 if not banned, 1 otherwise |
640 |
|
*/ |
641 |
|
int |
642 |
< |
is_banned(struct Channel *chptr, struct Client *who) |
642 |
> |
is_banned(const struct Channel *chptr, const struct Client *who) |
643 |
|
{ |
644 |
|
if (find_bmask(who, &chptr->banlist)) |
645 |
|
if (!ConfigChannel.use_except || !find_bmask(who, &chptr->exceptlist)) |
694 |
|
|
695 |
|
DLINK_FOREACH(ptr, client_p->channel.head) |
696 |
|
if (((struct Membership *)ptr->data)->chptr == chptr) |
697 |
< |
return (struct Membership *)ptr->data; |
697 |
> |
return ptr->data; |
698 |
|
|
699 |
|
return NULL; |
700 |
|
} |