169 |
|
static void |
170 |
|
conf_dns_callback(void *vptr, const struct irc_ssaddr *addr, const char *name) |
171 |
|
{ |
172 |
< |
struct AccessItem *aconf = (struct AccessItem *)vptr; |
173 |
< |
struct ConfItem *conf; |
172 |
> |
struct AccessItem *aconf = vptr; |
173 |
|
|
174 |
|
aconf->dns_pending = 0; |
175 |
|
|
3065 |
|
return 0; |
3066 |
|
} |
3067 |
|
|
3069 |
– |
/* conf_add_d_conf() |
3070 |
– |
* |
3071 |
– |
* inputs - pointer to config item |
3072 |
– |
* output - NONE |
3073 |
– |
* side effects - Add a d/D line |
3074 |
– |
*/ |
3075 |
– |
void |
3076 |
– |
conf_add_d_conf(struct AccessItem *aconf) |
3077 |
– |
{ |
3078 |
– |
if (aconf->host == NULL) |
3079 |
– |
return; |
3080 |
– |
|
3081 |
– |
aconf->user = NULL; |
3082 |
– |
|
3083 |
– |
/* XXX - Should 'd' ever be in the old conf? For new conf we don't |
3084 |
– |
* need this anyway, so I will disable it for now... -A1kmm |
3085 |
– |
*/ |
3086 |
– |
if (parse_netmask(aconf->host, NULL, NULL) == HM_HOST) |
3087 |
– |
{ |
3088 |
– |
ilog(L_WARN, "Invalid Dline %s ignored", aconf->host); |
3089 |
– |
free_access_item(aconf); |
3090 |
– |
} |
3091 |
– |
else |
3092 |
– |
{ |
3093 |
– |
/* XXX ensure user is NULL */ |
3094 |
– |
MyFree(aconf->user); |
3095 |
– |
aconf->user = NULL; |
3096 |
– |
add_conf_by_address(CONF_DLINE, aconf); |
3097 |
– |
} |
3098 |
– |
} |
3099 |
– |
|
3068 |
|
/* yyerror() |
3069 |
|
* |
3070 |
|
* inputs - message from parser |