| 1143 |
|
/* Make sure aconf is useful */ |
| 1144 |
|
assert(aconf != NULL); |
| 1145 |
|
|
| 1146 |
– |
if(aconf == NULL) |
| 1147 |
– |
return (0); |
| 1148 |
– |
|
| 1146 |
|
/* XXX should be passing struct ConfItem in the first place */ |
| 1147 |
|
conf = unmap_conf_item(aconf); |
| 1148 |
|
|
| 1149 |
|
/* log */ |
| 1150 |
|
getnameinfo((struct sockaddr *)&aconf->addr, aconf->addr.ss_len, |
| 1151 |
|
buf, sizeof(buf), NULL, 0, NI_NUMERICHOST); |
| 1152 |
< |
ilog(LOG_TYPE_IRCD, "Connect to %s[%s] @%s", aconf->user, aconf->host, |
| 1152 |
> |
ilog(LOG_TYPE_IRCD, "Connect to %s[%s] @%s", conf->name, aconf->host, |
| 1153 |
|
buf); |
| 1154 |
|
|
| 1155 |
|
/* Still processing a DNS lookup? -> exit */ |