| 177 |
|
void |
| 178 |
|
close_connection(struct Client *client_p) |
| 179 |
|
{ |
| 180 |
– |
struct AccessItem *aconf; |
| 181 |
– |
struct ClassItem *aclass; |
| 180 |
|
dlink_node *ptr = NULL; |
| 181 |
|
|
| 182 |
|
assert(client_p); |
| 208 |
|
|
| 209 |
|
DLINK_FOREACH(ptr, server_items.head) |
| 210 |
|
{ |
| 211 |
< |
struct ConfItem *conf = ptr->data; |
| 211 |
> |
struct MaskItem *conf = ptr->data; |
| 212 |
|
|
| 213 |
|
if (irccmp(conf->name, client_p->name)) |
| 214 |
|
continue; |
| 217 |
|
* Reset next-connect cycle of all connect{} blocks that match |
| 218 |
|
* this servername. |
| 219 |
|
*/ |
| 220 |
< |
aconf = map_to_conf(conf); |
| 223 |
< |
aclass = map_to_conf(aconf->class_ptr); |
| 224 |
< |
aconf->hold = CurrentTime + aclass->con_freq; |
| 220 |
> |
conf->hold = CurrentTime + conf->class->con_freq; |
| 221 |
|
} |
| 222 |
|
} |
| 223 |
|
else |
| 239 |
|
dbuf_clear(&client_p->localClient->buf_recvq); |
| 240 |
|
|
| 241 |
|
MyFree(client_p->localClient->passwd); |
| 242 |
< |
detach_conf(client_p, CONF_TYPE); |
| 242 |
> |
detach_conf(client_p, CONF_CLIENT|CONF_OPER|CONF_SERVER); |
| 243 |
|
client_p->from = NULL; /* ...this should catch them! >:) --msa */ |
| 244 |
|
} |
| 245 |
|
|