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

Comparing ircd-hybrid-8/src/channel.c (file contents):
Revision 1330 by michael, Sun Apr 1 12:12:00 2012 UTC vs.
Revision 1429 by michael, Thu Jun 7 19:14:14 2012 UTC

# 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 +
735      /* cache can send if quiet_on_ban and banned */
736      if (ConfigChannel.quiet_on_ban && MyClient(source_p))
737      {
# Line 752 | Line 756 | can_send(struct Channel *chptr, struct C
756    if (chptr->mode.mode & MODE_MODERATED)
757      return ERR_CANNOTSENDTOCHAN;
758  
759 +  if (chptr->mode.mode & MODE_REGONLY)
760 +    if (!HasUMode(source_p, UMODE_REGISTERED))
761 +      return ERR_NEEDREGGEDNICK;
762 +
763    return CAN_SEND_NONOP;
764   }
765  

Diff Legend

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