/[svn]/ircd-hybrid/branches/8.2.x/src/channel.c
ViewVC logotype

Diff of /ircd-hybrid/branches/8.2.x/src/channel.c

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

revision 4882 by michael, Sun Nov 2 11:45:16 2014 UTC revision 4883 by michael, Tue Nov 18 16:22:18 2014 UTC
# Line 750  can_send(struct Channel *chptr, struct C Line 750  can_send(struct Channel *chptr, struct C
750    
751    if ((chptr->mode.mode & MODE_NOCTRL) && msg_has_ctrls(message))    if ((chptr->mode.mode & MODE_NOCTRL) && msg_has_ctrls(message))
752      return ERR_NOCTRLSONCHAN;      return ERR_NOCTRLSONCHAN;
753    
754    if (member || (member = find_channel_link(source_p, chptr)))    if (member || (member = find_channel_link(source_p, chptr)))
755      if (member->flags & (CHFL_CHANOP|CHFL_HALFOP|CHFL_VOICE))      if (member->flags & (CHFL_CHANOP|CHFL_HALFOP|CHFL_VOICE))
756        return CAN_SEND_OPV;        return CAN_SEND_OPV;
757    
758    if (!member && (chptr->mode.mode & MODE_NOPRIVMSGS))    if (!member && (chptr->mode.mode & MODE_NOPRIVMSGS))
759      return ERR_CANNOTSENDTOCHAN;      return ERR_CANNOTSENDTOCHAN;
760    
761    if (chptr->mode.mode & MODE_MODERATED)    if (chptr->mode.mode & MODE_MODERATED)
762      return ERR_CANNOTSENDTOCHAN;      return ERR_CANNOTSENDTOCHAN;
763    
764    if ((chptr->mode.mode & MODE_MODREG) && !HasUMode(source_p, UMODE_REGISTERED))    if ((chptr->mode.mode & MODE_MODREG) && !HasUMode(source_p, UMODE_REGISTERED))
765      return ERR_NEEDREGGEDNICK;      return ERR_NEEDREGGEDNICK;
766    
# Line 829  check_spambot_warning(struct Client *sou Line 833  check_spambot_warning(struct Client *sou
833           JOIN_LEAVE_COUNT_EXPIRE_TIME)           JOIN_LEAVE_COUNT_EXPIRE_TIME)
834      {      {
835        decrement_count = (t_delta / JOIN_LEAVE_COUNT_EXPIRE_TIME);        decrement_count = (t_delta / JOIN_LEAVE_COUNT_EXPIRE_TIME);
836    
837        if (decrement_count > source_p->connection->join_leave_count)        if (decrement_count > source_p->connection->join_leave_count)
838          source_p->connection->join_leave_count = 0;          source_p->connection->join_leave_count = 0;
839        else        else

Legend:
Removed from v.4882  
changed lines
  Added in v.4883

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