/[svn]/ircd-hybrid-7.2/src/channel.c
ViewVC logotype

Diff of /ircd-hybrid-7.2/src/channel.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1012 by michael, Fri Sep 18 10:14:09 2009 UTC revision 1013 by michael, Sun Oct 18 14:26:49 2009 UTC
# Line 421  destroy_channel(struct Channel *chptr) Line 421  destroy_channel(struct Channel *chptr)
421   * \return string pointer "=" if public, "@" if secret else "*"   * \return string pointer "=" if public, "@" if secret else "*"
422   */   */
423  static const char *  static const char *
424  channel_pub_or_secret(struct Channel *chptr)  channel_pub_or_secret(const struct Channel *chptr)
425  {  {
426    if (SecretChannel(chptr))    if (SecretChannel(chptr))
427      return "@";      return "@";
# Line 639  find_bmask(const struct Client *who, con Line 639  find_bmask(const struct Client *who, con
639   * \return 0 if not banned, 1 otherwise   * \return 0 if not banned, 1 otherwise
640   */   */
641  int  int
642  is_banned(struct Channel *chptr, struct Client *who)  is_banned(const struct Channel *chptr, const struct Client *who)
643  {  {
644    if (find_bmask(who, &chptr->banlist))    if (find_bmask(who, &chptr->banlist))
645      if (!ConfigChannel.use_except || !find_bmask(who, &chptr->exceptlist))      if (!ConfigChannel.use_except || !find_bmask(who, &chptr->exceptlist))
# Line 694  find_channel_link(struct Client *client_ Line 694  find_channel_link(struct Client *client_
694    
695    DLINK_FOREACH(ptr, client_p->channel.head)    DLINK_FOREACH(ptr, client_p->channel.head)
696      if (((struct Membership *)ptr->data)->chptr == chptr)      if (((struct Membership *)ptr->data)->chptr == chptr)
697        return (struct Membership *)ptr->data;        return ptr->data;
698    
699    return NULL;    return NULL;
700  }  }

Legend:
Removed from v.1012  
changed lines
  Added in v.1013

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.26