3053 |
|
int |
3054 |
|
conf_add_server(struct ConfItem *conf, const char *class_name) |
3055 |
|
{ |
3056 |
< |
struct AccessItem *aconf; |
3057 |
< |
struct split_nuh_item nuh; |
3058 |
< |
char conf_user[USERLEN + 1]; |
3059 |
< |
char conf_host[HOSTLEN + 1]; |
3060 |
< |
|
3061 |
< |
aconf = map_to_conf(conf); |
3056 |
> |
struct AccessItem *aconf = map_to_conf(conf); |
3057 |
|
|
3058 |
|
conf_add_class_to_conf(conf, class_name); |
3059 |
|
|
3072 |
|
return -1; |
3073 |
|
} |
3074 |
|
|
3080 |
– |
nuh.nuhmask = aconf->host; |
3081 |
– |
nuh.nickptr = NULL; |
3082 |
– |
nuh.userptr = conf_user; |
3083 |
– |
nuh.hostptr = conf_host; |
3084 |
– |
|
3085 |
– |
nuh.nicksize = 0; |
3086 |
– |
nuh.usersize = sizeof(conf_user); |
3087 |
– |
nuh.hostsize = sizeof(conf_host); |
3088 |
– |
|
3089 |
– |
split_nuh(&nuh); |
3090 |
– |
|
3091 |
– |
MyFree(aconf->host); |
3092 |
– |
aconf->host = NULL; |
3093 |
– |
|
3094 |
– |
DupString(aconf->user, conf_user); /* somehow username checking for servers |
3095 |
– |
got lost in H6/7, will have to be re-added */ |
3096 |
– |
DupString(aconf->host, conf_host); |
3097 |
– |
|
3075 |
|
lookup_confhost(conf); |
3076 |
|
|
3077 |
|
return 0; |