30 |
|
#include "fdlist.h" |
31 |
|
#include "s_bsd.h" |
32 |
|
#include "client.h" |
33 |
– |
#include "common.h" |
33 |
|
#include "dbuf.h" |
34 |
|
#include "event.h" |
35 |
|
#include "irc_string.h" |
130 |
|
who = (who) ? who : ""; |
131 |
|
|
132 |
|
sendto_realops_flags(UMODE_DEBUG, level, text, who, strerror(error)); |
133 |
< |
log_oper_action(LOG_IOERR_TYPE, NULL, "%s %s %s\n", who, text, strerror(error)); |
135 |
< |
ilog(L_ERROR, text, who, strerror(error)); |
133 |
> |
ilog(LOG_TYPE_IRCD, text, who, strerror(error)); |
134 |
|
} |
135 |
|
|
136 |
|
/* |
198 |
|
++ServerStats.is_cl; |
199 |
|
ServerStats.is_cbs += client_p->localClient->send.bytes; |
200 |
|
ServerStats.is_cbr += client_p->localClient->recv.bytes; |
201 |
< |
ServerStats.is_cti += CurrentTime - client_p->firsttime; |
201 |
> |
ServerStats.is_cti += CurrentTime - client_p->localClient->firsttime; |
202 |
|
} |
203 |
|
else if (IsServer(client_p)) |
204 |
|
{ |
205 |
|
++ServerStats.is_sv; |
206 |
|
ServerStats.is_sbs += client_p->localClient->send.bytes; |
207 |
|
ServerStats.is_sbr += client_p->localClient->recv.bytes; |
208 |
< |
ServerStats.is_sti += CurrentTime - client_p->firsttime; |
208 |
> |
ServerStats.is_sti += CurrentTime - client_p->localClient->firsttime; |
209 |
|
|
210 |
|
/* XXX Does this even make any sense at all anymore? |
211 |
|
* scheduling a 'quick' reconnect could cause a pile of |
227 |
|
aconf = map_to_conf(conf); |
228 |
|
aclass = map_to_conf(aconf->class_ptr); |
229 |
|
aconf->hold = time(NULL); |
230 |
< |
aconf->hold += (aconf->hold - client_p->since > HANGONGOODLINK) ? |
230 |
> |
aconf->hold += (aconf->hold - client_p->localClient->since > HANGONGOODLINK) ? |
231 |
|
HANGONRETRYDELAY : ConFreq(aclass); |
232 |
|
} |
233 |
|
} |
337 |
|
{ |
338 |
|
if ((new_client->localClient->fd.ssl = SSL_new(ServerInfo.server_ctx)) == NULL) |
339 |
|
{ |
340 |
< |
ilog(L_CRIT, "SSL_new() ERROR! -- %s", |
340 |
> |
ilog(LOG_TYPE_IRCD, "SSL_new() ERROR! -- %s", |
341 |
|
ERR_error_string(ERR_get_error(), NULL)); |
342 |
|
|
343 |
|
SetDead(new_client); |