989 |
conf_connect_allowed(struct irc_ssaddr *addr, int aftype) |
conf_connect_allowed(struct irc_ssaddr *addr, int aftype) |
990 |
{ |
{ |
991 |
struct ip_entry *ip_found = NULL; |
struct ip_entry *ip_found = NULL; |
992 |
struct MaskItem *const conf = find_dline_conf(addr, aftype); |
const struct MaskItem *conf = find_dline_conf(addr, aftype); |
|
|
|
|
/* DLINE exempt also gets you out of static limits/pacing... */ |
|
|
if (conf && (conf->type == CONF_EXEMPT)) |
|
|
return 0; |
|
993 |
|
|
994 |
if (conf) |
if (conf) |
995 |
|
{ |
996 |
|
/* DLINE exempt also gets you out of static limits/pacing... */ |
997 |
|
if (conf->type == CONF_EXEMPT) |
998 |
|
return 0; |
999 |
return BANNED_CLIENT; |
return BANNED_CLIENT; |
1000 |
|
} |
1001 |
|
|
1002 |
ip_found = ipcache_find_or_add_address(addr); |
ip_found = ipcache_find_or_add_address(addr); |
1003 |
|
|