138 |
|
static void |
139 |
|
quote_autoconn(struct Client *source_p, const char *arg, int newval) |
140 |
|
{ |
141 |
– |
struct AccessItem *aconf; |
142 |
– |
|
141 |
|
if (arg != NULL) |
142 |
|
{ |
143 |
< |
struct ConfItem *conf = find_exact_name_conf(SERVER_TYPE, NULL, arg, NULL, NULL); |
143 |
> |
struct MaskItem *conf = find_exact_name_conf(CONF_SERVER, NULL, arg, NULL, NULL); |
144 |
|
|
145 |
|
if (conf != NULL) |
146 |
|
{ |
149 |
– |
aconf = map_to_conf(conf); |
147 |
|
if (newval) |
148 |
< |
SetConfAllowAutoConn(aconf); |
148 |
> |
SetConfAllowAutoConn(conf); |
149 |
|
else |
150 |
< |
ClearConfAllowAutoConn(aconf); |
150 |
> |
ClearConfAllowAutoConn(conf); |
151 |
|
|
152 |
|
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
153 |
|
"%s has changed AUTOCONN for %s to %i", |