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

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

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

revision 1428 by michael, Sun Apr 1 12:12:00 2012 UTC revision 1429 by michael, Thu Jun 7 19:14:14 2012 UTC
# Line 728  can_send(struct Channel *chptr, struct C Line 728  can_send(struct Channel *chptr, struct C
728      if (ms->flags & (CHFL_CHANOP|CHFL_HALFOP|CHFL_VOICE))      if (ms->flags & (CHFL_CHANOP|CHFL_HALFOP|CHFL_VOICE))
729        return CAN_SEND_OPV;        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 */      /* cache can send if quiet_on_ban and banned */
736      if (ConfigChannel.quiet_on_ban && MyClient(source_p))      if (ConfigChannel.quiet_on_ban && MyClient(source_p))
737      {      {
# Line 752  can_send(struct Channel *chptr, struct C Line 756  can_send(struct Channel *chptr, struct C
756    if (chptr->mode.mode & MODE_MODERATED)    if (chptr->mode.mode & MODE_MODERATED)
757      return ERR_CANNOTSENDTOCHAN;      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;    return CAN_SEND_NONOP;
764  }  }
765    

Legend:
Removed from v.1428  
changed lines
  Added in v.1429

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