ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/releases/8.1.0beta2/src/channel.c
(Generate patch)

Comparing ircd-hybrid-8/src/channel.c (file contents):
Revision 1429 by michael, Thu Jun 7 19:14:14 2012 UTC vs.
Revision 1435 by michael, Fri Jun 15 18:35:37 2012 UTC

# Line 671 | Line 671 | can_join(struct Client *source_p, struct
671        if (!ConfigChannel.use_invex || !find_bmask(source_p, &chptr->invexlist))
672          return ERR_INVITEONLYCHAN;
673  
674 <  if (chptr->mode.key[0] && (!key || irccmp(chptr->mode.key, key)))
674 >  if (chptr->mode.key[0] && (!key || strcmp(chptr->mode.key, key)))
675      return ERR_BADCHANNELKEY;
676  
677    if (chptr->mode.limit && dlink_list_length(&chptr->members) >=
# Line 728 | Line 728 | can_send(struct Channel *chptr, struct C
728      if (ms->flags & (CHFL_CHANOP|CHFL_HALFOP|CHFL_VOICE))
729        return CAN_SEND_OPV;
730  
731    if (chptr->mode.mode & MODE_REGONLY)
732      if (!HasUMode(source_p, UMODE_REGISTERED))
733        return ERR_NEEDREGGEDNICK;
734
731      /* cache can send if quiet_on_ban and banned */
732      if (ConfigChannel.quiet_on_ban && MyClient(source_p))
733      {
# Line 756 | Line 752 | can_send(struct Channel *chptr, struct C
752    if (chptr->mode.mode & MODE_MODERATED)
753      return ERR_CANNOTSENDTOCHAN;
754  
759  if (chptr->mode.mode & MODE_REGONLY)
760    if (!HasUMode(source_p, UMODE_REGISTERED))
761      return ERR_NEEDREGGEDNICK;
762
755    return CAN_SEND_NONOP;
756   }
757  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)