Changeset 732 for branches/ithildin-1.1


Ignore:
Timestamp:
05/12/06 03:38:09 (6 years ago)
Author:
wd
Message:
  • Make ACL find honor "default rule"
  • Update forgotten throttle module from last update.
Location:
branches/ithildin-1.1/modules/ircd/addons
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ithildin-1.1/modules/ircd/addons/acl.c

    r731 r732  
    160160    acl_t *ap; 
    161161 
     162     
    162163    /* extract user@host data */ 
    163164    strlcpy(hostcopy, hostmask, USERLEN + HOSTLEN + 2); 
     
    171172        strlcpy(host, at + 1, HOSTLEN + 1); 
    172173    } 
     174 
     175    if (rule == ACL_DEFAULT_RULE) 
     176        rule = acl.default_rule; 
    173177 
    174178    if (stage == ACL_STAGE_CONNECT) 
  • branches/ithildin-1.1/modules/ircd/addons/throttle.c

    r731 r732  
    165165    if (tp->banned + len >= me.now)  { 
    166166        if ((ap = find_acl(ACL_STAGE_CONNECT, ACL_DENY, cp->host, 
    167                         throttle_acl_type, NULL, NULL)) == NULL) { 
     167                        throttle_acl_type, ACL_DEFAULT_RULE, NULL, NULL)) == NULL) { 
    168168            ap = create_acl(ACL_STAGE_CONNECT, ACL_DENY, cp->host, 
    169169                    throttle_acl_type, ACL_DEFAULT_RULE); 
Note: See TracChangeset for help on using the changeset viewer.