mirror of
https://github.com/matrix-construct/construct
synced 2024-11-30 02:32:43 +01:00
Remove conf_connect_allowed(), neither used nor declared.
This commit is contained in:
parent
896755fe0d
commit
fd5c370711
1 changed files with 0 additions and 23 deletions
23
src/s_conf.c
23
src/s_conf.c
|
@ -904,29 +904,6 @@ validate_conf(void)
|
|||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* conf_connect_allowed
|
||||
*
|
||||
* inputs - pointer to inaddr
|
||||
* - int type ipv4 or ipv6
|
||||
* output - ban info or NULL
|
||||
* side effects - none
|
||||
*/
|
||||
struct ConfItem *
|
||||
conf_connect_allowed(struct sockaddr *addr, int aftype)
|
||||
{
|
||||
struct ConfItem *aconf = find_dline(addr, aftype);
|
||||
|
||||
/* DLINE exempt also gets you out of static limits/pacing... */
|
||||
if(aconf && (aconf->status & CONF_EXEMPTDLINE))
|
||||
return NULL;
|
||||
|
||||
if(aconf != NULL)
|
||||
return aconf;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* add_temp_kline()
|
||||
*
|
||||
* inputs - pointer to struct ConfItem
|
||||
|
|
Loading…
Reference in a new issue